<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Jetson Inference: jetson-inference/detectNet.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="NVLogo_2D.jpg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Jetson Inference
   </div>
   <div id="projectbrief">DNN Vision Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('detectNet_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">detectNet.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="detectNet_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Permission is hereby granted, free of charge, to any person obtaining a</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * copy of this software and associated documentation files (the &quot;Software&quot;),</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * to deal in the Software without restriction, including without limitation</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * the rights to use, copy, modify, merge, publish, distribute, sublicense,</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * and/or sell copies of the Software, and to permit persons to whom the</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * Software is furnished to do so, subject to the following conditions:</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * The above copyright notice and this permission notice shall be included in</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * all copies or substantial portions of the Software.</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * DEALINGS IN THE SOFTWARE.</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160; </div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#ifndef __DETECT_NET_H__</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#define __DETECT_NET_H__</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160; </div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160; </div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="tensorNet_8h.html">tensorNet.h</a>&quot;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160; </div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="group__detectNet.html#gac824e329015dc8aed6e1112bfe21cb97">   34</a></span>&#160;<span class="preprocessor">#define DETECTNET_DEFAULT_INPUT   &quot;data&quot;</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="group__detectNet.html#ga1e79603783719e4a79f2c68f1ef47621">   40</a></span>&#160;<span class="preprocessor">#define DETECTNET_DEFAULT_COVERAGE  &quot;coverage&quot;</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160; </div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="group__detectNet.html#gac8c52a38ffa041865ed71fd2ea806620">   46</a></span>&#160;<span class="preprocessor">#define DETECTNET_DEFAULT_BBOX  &quot;bboxes&quot;</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160; </div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="group__detectNet.html#ga56785ae0440a9e281a6dc44dc01039a5">   52</a></span>&#160;<span class="preprocessor">#define DETECTNET_DEFAULT_CONFIDENCE_THRESHOLD 0.5f</span></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160; </div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="group__detectNet.html#gaa2efb4303553391c619798a21b0f0d4e">   58</a></span>&#160;<span class="preprocessor">#define DETECTNET_DEFAULT_CLUSTERING_THRESHOLD 0.75f</span></div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160; </div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="group__detectNet.html#ga5de620e838c2ac9aec16c6de2977513f">   65</a></span>&#160;<span class="preprocessor">#define DETECTNET_DEFAULT_THRESHOLD  DETECTNET_DEFAULT_CONFIDENCE_THRESHOLD</span></div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160; </div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="group__detectNet.html#ga98aed3513105a81bd86361eef5423383">   71</a></span>&#160;<span class="preprocessor">#define DETECTNET_DEFAULT_ALPHA 120</span></div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160; </div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="group__detectNet.html#gaa3c79af5c5926692f4ee973b3a7e1a86">   77</a></span>&#160;<span class="preprocessor">#define DETECTNET_MODEL_TYPE &quot;detection&quot;</span></div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160; </div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="group__detectNet.html#gad5f43885a04689f10c6f9d297ab88a8d">   83</a></span>&#160;<span class="preprocessor">#define DETECTNET_USAGE_STRING  &quot;detectNet arguments: \n&quot;                                       \</span></div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="preprocessor">                  &quot;  --network=NETWORK     pre-trained model to load, one of the following:\n&quot;          \</span></div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="preprocessor">                  &quot;                            * ssd-mobilenet-v1\n&quot;                                                    \</span></div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="preprocessor">                  &quot;                            * ssd-mobilenet-v2 (default)\n&quot;                                  \</span></div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="preprocessor">                  &quot;                            * ssd-inception-v2\n&quot;                                                    \</span></div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<span class="preprocessor">                  &quot;                            * peoplenet\n&quot;                                        \</span></div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<span class="preprocessor">                  &quot;                            * peoplenet-pruned\n&quot;                                 \</span></div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="preprocessor">                  &quot;                            * dashcamnet\n&quot;                                       \</span></div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<span class="preprocessor">                  &quot;                            * trafficcamnet\n&quot;                                    \</span></div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="preprocessor">                  &quot;                            * facedetect\n&quot;                                       \</span></div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="preprocessor">                  &quot;  --model=MODEL         path to custom model to load (caffemodel, uff, or onnx)\n&quot;                                   \</span></div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="preprocessor">                  &quot;  --prototxt=PROTOTXT   path to custom prototxt to load (for .caffemodel only)\n&quot;                                    \</span></div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="preprocessor">                  &quot;  --labels=LABELS       path to text file containing the labels for each class\n&quot;                                    \</span></div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="preprocessor">                  &quot;  --input-blob=INPUT    name of the input layer (default is &#39;&quot; DETECTNET_DEFAULT_INPUT &quot;&#39;)\n&quot;                        \</span></div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="preprocessor">                  &quot;  --output-cvg=COVERAGE name of the coverage/confidence output layer (default is &#39;&quot; DETECTNET_DEFAULT_COVERAGE &quot;&#39;)\n&quot;        \</span></div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="preprocessor">                  &quot;  --output-bbox=BOXES   name of the bounding output layer (default is &#39;&quot; DETECTNET_DEFAULT_BBOX &quot;&#39;)\n&quot;       \</span></div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;<span class="preprocessor">                  &quot;  --mean-pixel=PIXEL    mean pixel value to subtract from input (default is 0.0)\n&quot;                                  \</span></div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="preprocessor">                  &quot;  --confidence=CONF     minimum confidence threshold for detection (default is 0.5)\n&quot;                               \</span></div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;<span class="preprocessor">                  &quot;  --clustering=CLUSTER  minimum overlapping area threshold for clustering (default is 0.75)\n&quot;             \</span></div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="preprocessor">            &quot;  --alpha=ALPHA         overlay alpha blending value, range 0-255 (default: 120)\n&quot;                                        \</span></div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<span class="preprocessor">                  &quot;  --overlay=OVERLAY     detection overlay flags (e.g. --overlay=box,labels,conf)\n&quot;                                  \</span></div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="preprocessor">                  &quot;                        valid combinations are:  &#39;box&#39;, &#39;lines&#39;, &#39;labels&#39;, &#39;conf&#39;, &#39;none&#39;\n&quot;                 \</span></div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<span class="preprocessor">                  &quot;  --profile             enable layer profiling in TensorRT\n\n&quot;                              \</span></div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;<span class="preprocessor"></span> </div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160; </div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;<span class="comment">// forward declarations</span></div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<span class="keyword">class </span><a class="code" href="group__objectTracker.html#classobjectTracker">objectTracker</a>;</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160; </div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160; </div>
<div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="group__detectNet.html">  116</a></span>&#160;<span class="keyword">class </span><a class="code" href="group__detectNet.html#classdetectNet">detectNet</a> : <span class="keyword">public</span> <a class="code" href="group__tensorNet.html#classtensorNet">tensorNet</a></div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;{</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="structdetectNet_1_1Detection.html">  122</a></span>&#160;        <span class="keyword">struct </span><a class="code" href="structdetectNet_1_1Detection.html">Detection</a></div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;        {</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;                <span class="comment">// Detection Info</span></div>
<div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="structdetectNet_1_1Detection.html#a0baef8e908f93105f2e6d1202ae2954e">  125</a></span>&#160;                uint32_t <a class="code" href="structdetectNet_1_1Detection.html#a0baef8e908f93105f2e6d1202ae2954e">ClassID</a>;       </div>
<div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="structdetectNet_1_1Detection.html#a04b420d87cc33bd1b3d3192509b4bfa5">  126</a></span>&#160;                <span class="keywordtype">float</span> <a class="code" href="structdetectNet_1_1Detection.html#a04b420d87cc33bd1b3d3192509b4bfa5">Confidence</a>;       </div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;                <span class="comment">// Tracking Info</span></div>
<div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="structdetectNet_1_1Detection.html#ae3ef31867dad24441a3163c457a972ab">  129</a></span>&#160;                <span class="keywordtype">int</span> <a class="code" href="structdetectNet_1_1Detection.html#ae3ef31867dad24441a3163c457a972ab">TrackID</a>;            </div>
<div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="structdetectNet_1_1Detection.html#a4a4ab1c5c534c82ea14cdaed835f401d">  130</a></span>&#160;                <span class="keywordtype">int</span> <a class="code" href="structdetectNet_1_1Detection.html#a4a4ab1c5c534c82ea14cdaed835f401d">TrackStatus</a>;        </div>
<div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="structdetectNet_1_1Detection.html#a85fa073a482b8619e74868c53bd83fa5">  131</a></span>&#160;                <span class="keywordtype">int</span> <a class="code" href="structdetectNet_1_1Detection.html#a85fa073a482b8619e74868c53bd83fa5">TrackFrames</a>;        </div>
<div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="structdetectNet_1_1Detection.html#ad07a85ac4ef3226fe860b6151b71d750">  132</a></span>&#160;                <span class="keywordtype">int</span> <a class="code" href="structdetectNet_1_1Detection.html#ad07a85ac4ef3226fe860b6151b71d750">TrackLost</a>;          </div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;                <span class="comment">// Bounding Box Coordinates</span></div>
<div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="structdetectNet_1_1Detection.html#a42914a705a6cad72e56a9ad4fb68b0e6">  135</a></span>&#160;                <span class="keywordtype">float</span> <a class="code" href="structdetectNet_1_1Detection.html#a42914a705a6cad72e56a9ad4fb68b0e6">Left</a>;             </div>
<div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="structdetectNet_1_1Detection.html#aa008c7f9d614b314281366b7797cd00a">  136</a></span>&#160;                <span class="keywordtype">float</span> <a class="code" href="structdetectNet_1_1Detection.html#aa008c7f9d614b314281366b7797cd00a">Right</a>;            </div>
<div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="structdetectNet_1_1Detection.html#a2776e71cde1e6c41676bb5e6d12b1d0d">  137</a></span>&#160;                <span class="keywordtype">float</span> <a class="code" href="structdetectNet_1_1Detection.html#a2776e71cde1e6c41676bb5e6d12b1d0d">Top</a>;              </div>
<div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="structdetectNet_1_1Detection.html#a97869bd21815bfc1ca005fa057329ffe">  138</a></span>&#160;                <span class="keywordtype">float</span> <a class="code" href="structdetectNet_1_1Detection.html#a97869bd21815bfc1ca005fa057329ffe">Bottom</a>;           </div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;                <span class="keyword">inline</span> <span class="keywordtype">float</span> Width()<span class="keyword"> const                                                                                      </span>{ <span class="keywordflow">return</span> <a class="code" href="structdetectNet_1_1Detection.html#aa008c7f9d614b314281366b7797cd00a">Right</a> - <a class="code" href="structdetectNet_1_1Detection.html#a42914a705a6cad72e56a9ad4fb68b0e6">Left</a>; }</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160; </div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;                <span class="keyword">inline</span> <span class="keywordtype">float</span> Height()<span class="keyword"> const                                                                                     </span>{ <span class="keywordflow">return</span> <a class="code" href="structdetectNet_1_1Detection.html#a97869bd21815bfc1ca005fa057329ffe">Bottom</a> - <a class="code" href="structdetectNet_1_1Detection.html#a2776e71cde1e6c41676bb5e6d12b1d0d">Top</a>; }</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160; </div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;                <span class="keyword">inline</span> <span class="keywordtype">float</span> Area()<span class="keyword"> const                                                                                       </span>{ <span class="keywordflow">return</span> Width() * Height(); }</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160; </div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;                <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">float</span> Width( <span class="keywordtype">float</span> x1, <span class="keywordtype">float</span> x2 )                                                 { <span class="keywordflow">return</span> x2 - x1; }</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160; </div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;                <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">float</span> Height( <span class="keywordtype">float</span> y1, <span class="keywordtype">float</span> y2 )                                                        { <span class="keywordflow">return</span> y2 - y1; }</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160; </div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;                <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">float</span> Area( <span class="keywordtype">float</span> x1, <span class="keywordtype">float</span> y1, <span class="keywordtype">float</span> x2, <span class="keywordtype">float</span> y2 )                      { <span class="keywordflow">return</span> Width(x1,x2) * Height(y1,y2); }</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160; </div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;                <span class="keyword">inline</span> <span class="keywordtype">void</span> Center( <span class="keywordtype">float</span>* x, <span class="keywordtype">float</span>* y )<span class="keyword"> const                                                  </span>{ <span class="keywordflow">if</span>(x) *x = <a class="code" href="structdetectNet_1_1Detection.html#a42914a705a6cad72e56a9ad4fb68b0e6">Left</a> + Width() * 0.5f; <span class="keywordflow">if</span>(y) *y = <a class="code" href="structdetectNet_1_1Detection.html#a2776e71cde1e6c41676bb5e6d12b1d0d">Top</a> + Height() * 0.5f; }</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160; </div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;                <span class="keyword">inline</span> <span class="keywordtype">bool</span> Contains( <span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y )<span class="keyword"> const                                                  </span>{ <span class="keywordflow">return</span> x &gt;= <a class="code" href="structdetectNet_1_1Detection.html#a42914a705a6cad72e56a9ad4fb68b0e6">Left</a> &amp;&amp; x &lt;= Right &amp;&amp; y &gt;= <a class="code" href="structdetectNet_1_1Detection.html#a2776e71cde1e6c41676bb5e6d12b1d0d">Top</a> &amp;&amp; y &lt;= <a class="code" href="structdetectNet_1_1Detection.html#a97869bd21815bfc1ca005fa057329ffe">Bottom</a>; }</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;                </div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;                <span class="keyword">inline</span> <span class="keywordtype">bool</span> Intersects( <span class="keyword">const</span> <a class="code" href="structdetectNet_1_1Detection.html#a985bb069089a55dc4a43d360486c1d1f">Detection</a>&amp; det, <span class="keywordtype">float</span> areaThreshold=0.0f )<span class="keyword"> const  </span>{ <span class="keywordflow">return</span> (IntersectionArea(det) / <a class="code" href="cudaMath_8h.html#a2e3ea020fe010be1ba2da473f17223b7">fmaxf</a>(Area(), det.Area()) &gt; areaThreshold); }</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;        </div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;                <span class="keyword">inline</span> <span class="keywordtype">bool</span> Intersects( <span class="keywordtype">float</span> x1, <span class="keywordtype">float</span> y1, <span class="keywordtype">float</span> x2, <span class="keywordtype">float</span> y2, <span class="keywordtype">float</span> areaThreshold=0.0f )<span class="keyword"> const  </span>{ <span class="keywordflow">return</span> (IntersectionArea(x1,y1,x2,y2) / <a class="code" href="cudaMath_8h.html#a2e3ea020fe010be1ba2da473f17223b7">fmaxf</a>(Area(), Area(x1,y1,x2,y2)) &gt; areaThreshold); }</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;        </div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;                <span class="keyword">inline</span> <span class="keywordtype">float</span> IntersectionArea( <span class="keyword">const</span> <a class="code" href="structdetectNet_1_1Detection.html#a985bb069089a55dc4a43d360486c1d1f">Detection</a>&amp; det )<span class="keyword"> const                                     </span>{ <span class="keywordflow">return</span> IntersectionArea(det.Left, det.Top, det.Right, det.Bottom); }</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160; </div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;                <span class="keyword">inline</span> <span class="keywordtype">float</span> IntersectionArea( <span class="keywordtype">float</span> x1, <span class="keywordtype">float</span> y1, <span class="keywordtype">float</span> x2, <span class="keywordtype">float</span> y2 )<span class="keyword"> const   </span>{ <span class="keywordflow">if</span>(!Overlaps(x1,y1,x2,y2)) <span class="keywordflow">return</span> 0.0f; <span class="keywordflow">return</span> (<a class="code" href="cudaMath_8h.html#a550f4f667b306665a335168336fc95b3">fminf</a>(<a class="code" href="structdetectNet_1_1Detection.html#aa008c7f9d614b314281366b7797cd00a">Right</a>, x2) - <a class="code" href="cudaMath_8h.html#a2e3ea020fe010be1ba2da473f17223b7">fmaxf</a>(<a class="code" href="structdetectNet_1_1Detection.html#a42914a705a6cad72e56a9ad4fb68b0e6">Left</a>, x1)) * (<a class="code" href="cudaMath_8h.html#a550f4f667b306665a335168336fc95b3">fminf</a>(<a class="code" href="structdetectNet_1_1Detection.html#a97869bd21815bfc1ca005fa057329ffe">Bottom</a>, y2) - <a class="code" href="cudaMath_8h.html#a2e3ea020fe010be1ba2da473f17223b7">fmaxf</a>(<a class="code" href="structdetectNet_1_1Detection.html#a2776e71cde1e6c41676bb5e6d12b1d0d">Top</a>, y1)); }</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160; </div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;                <span class="keyword">inline</span> <span class="keywordtype">float</span> <a class="code" href="structdetectNet_1_1Detection.html#acf01a244de6de3f20e8e3930bae0f60e">IOU</a>( <span class="keyword">const</span> <a class="code" href="structdetectNet_1_1Detection.html#a985bb069089a55dc4a43d360486c1d1f">Detection</a>&amp; det )<span class="keyword"> const                                                  </span>{ <span class="keywordflow">return</span> <a class="code" href="structdetectNet_1_1Detection.html#acf01a244de6de3f20e8e3930bae0f60e">IOU</a>(det.Left, det.Top, det.Right, det.Bottom); }</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;                </div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;                <span class="keyword">inline</span> <span class="keywordtype">float</span> <a class="code" href="structdetectNet_1_1Detection.html#acf01a244de6de3f20e8e3930bae0f60e">IOU</a>( <span class="keywordtype">float</span> x1, <span class="keywordtype">float</span> y1, <span class="keywordtype">float</span> x2, <span class="keywordtype">float</span> y2 ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;                </div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;                <span class="keyword">inline</span> <span class="keywordtype">bool</span> Overlaps( <span class="keyword">const</span> <a class="code" href="structdetectNet_1_1Detection.html#a985bb069089a55dc4a43d360486c1d1f">Detection</a>&amp; det )<span class="keyword"> const                                              </span>{ <span class="keywordflow">return</span> !(det.Left &gt; <a class="code" href="structdetectNet_1_1Detection.html#aa008c7f9d614b314281366b7797cd00a">Right</a> || det.Right &lt; <a class="code" href="structdetectNet_1_1Detection.html#a42914a705a6cad72e56a9ad4fb68b0e6">Left</a> || det.Top &gt; <a class="code" href="structdetectNet_1_1Detection.html#a97869bd21815bfc1ca005fa057329ffe">Bottom</a> || det.Bottom &lt; <a class="code" href="structdetectNet_1_1Detection.html#a2776e71cde1e6c41676bb5e6d12b1d0d">Top</a>); }</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;                </div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;                <span class="keyword">inline</span> <span class="keywordtype">bool</span> Overlaps( <span class="keywordtype">float</span> x1, <span class="keywordtype">float</span> y1, <span class="keywordtype">float</span> x2, <span class="keywordtype">float</span> y2 )<span class="keyword"> const                    </span>{ <span class="keywordflow">return</span> !(x1 &gt; <a class="code" href="structdetectNet_1_1Detection.html#aa008c7f9d614b314281366b7797cd00a">Right</a> || x2 &lt; Left || y1 &gt; <a class="code" href="structdetectNet_1_1Detection.html#a97869bd21815bfc1ca005fa057329ffe">Bottom</a> || y2 &lt; <a class="code" href="structdetectNet_1_1Detection.html#a2776e71cde1e6c41676bb5e6d12b1d0d">Top</a>); }</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;                </div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;                <span class="keyword">inline</span> <span class="keywordtype">bool</span> Expand( <span class="keywordtype">float</span> x1, <span class="keywordtype">float</span> y1, <span class="keywordtype">float</span> x2, <span class="keywordtype">float</span> y2 )                    { <span class="keywordflow">if</span>(!Overlaps(x1, y1, x2, y2)) <span class="keywordflow">return</span> <span class="keyword">false</span>; <a class="code" href="structdetectNet_1_1Detection.html#a42914a705a6cad72e56a9ad4fb68b0e6">Left</a> = <a class="code" href="cudaMath_8h.html#a550f4f667b306665a335168336fc95b3">fminf</a>(x1, <a class="code" href="structdetectNet_1_1Detection.html#a42914a705a6cad72e56a9ad4fb68b0e6">Left</a>); <a class="code" href="structdetectNet_1_1Detection.html#a2776e71cde1e6c41676bb5e6d12b1d0d">Top</a> = <a class="code" href="cudaMath_8h.html#a550f4f667b306665a335168336fc95b3">fminf</a>(y1, <a class="code" href="structdetectNet_1_1Detection.html#a2776e71cde1e6c41676bb5e6d12b1d0d">Top</a>); <a class="code" href="structdetectNet_1_1Detection.html#aa008c7f9d614b314281366b7797cd00a">Right</a> = <a class="code" href="cudaMath_8h.html#a2e3ea020fe010be1ba2da473f17223b7">fmaxf</a>(x2, <a class="code" href="structdetectNet_1_1Detection.html#aa008c7f9d614b314281366b7797cd00a">Right</a>); <a class="code" href="structdetectNet_1_1Detection.html#a97869bd21815bfc1ca005fa057329ffe">Bottom</a> = <a class="code" href="cudaMath_8h.html#a2e3ea020fe010be1ba2da473f17223b7">fmaxf</a>(y2, <a class="code" href="structdetectNet_1_1Detection.html#a97869bd21815bfc1ca005fa057329ffe">Bottom</a>); <span class="keywordflow">return</span> <span class="keyword">true</span>; }</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;                </div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;                <span class="keyword">inline</span> <span class="keywordtype">bool</span> Expand( <span class="keyword">const</span> <a class="code" href="structdetectNet_1_1Detection.html#a985bb069089a55dc4a43d360486c1d1f">Detection</a>&amp; det )                                                              { <span class="keywordflow">if</span>(!Overlaps(det)) <span class="keywordflow">return</span> <span class="keyword">false</span>; <a class="code" href="structdetectNet_1_1Detection.html#a42914a705a6cad72e56a9ad4fb68b0e6">Left</a> = <a class="code" href="cudaMath_8h.html#a550f4f667b306665a335168336fc95b3">fminf</a>(det.Left, <a class="code" href="structdetectNet_1_1Detection.html#a42914a705a6cad72e56a9ad4fb68b0e6">Left</a>); <a class="code" href="structdetectNet_1_1Detection.html#a2776e71cde1e6c41676bb5e6d12b1d0d">Top</a> = <a class="code" href="cudaMath_8h.html#a550f4f667b306665a335168336fc95b3">fminf</a>(det.Top, <a class="code" href="structdetectNet_1_1Detection.html#a2776e71cde1e6c41676bb5e6d12b1d0d">Top</a>); <a class="code" href="structdetectNet_1_1Detection.html#aa008c7f9d614b314281366b7797cd00a">Right</a> = <a class="code" href="cudaMath_8h.html#a2e3ea020fe010be1ba2da473f17223b7">fmaxf</a>(det.Right, <a class="code" href="structdetectNet_1_1Detection.html#aa008c7f9d614b314281366b7797cd00a">Right</a>); <a class="code" href="structdetectNet_1_1Detection.html#a97869bd21815bfc1ca005fa057329ffe">Bottom</a> = <a class="code" href="cudaMath_8h.html#a2e3ea020fe010be1ba2da473f17223b7">fmaxf</a>(det.Bottom, <a class="code" href="structdetectNet_1_1Detection.html#a97869bd21815bfc1ca005fa057329ffe">Bottom</a>); <span class="keywordflow">return</span> <span class="keyword">true</span>; }</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160; </div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;                <span class="keyword">inline</span> <span class="keywordtype">void</span> Reset()                                                                                                     { <a class="code" href="structdetectNet_1_1Detection.html#a0baef8e908f93105f2e6d1202ae2954e">ClassID</a> = 0; <a class="code" href="structdetectNet_1_1Detection.html#a04b420d87cc33bd1b3d3192509b4bfa5">Confidence</a> = 0; <a class="code" href="structdetectNet_1_1Detection.html#ae3ef31867dad24441a3163c457a972ab">TrackID</a> = -1; <a class="code" href="structdetectNet_1_1Detection.html#a4a4ab1c5c534c82ea14cdaed835f401d">TrackStatus</a> = -1; <a class="code" href="structdetectNet_1_1Detection.html#a85fa073a482b8619e74868c53bd83fa5">TrackFrames</a> = 0; <a class="code" href="structdetectNet_1_1Detection.html#ad07a85ac4ef3226fe860b6151b71d750">TrackLost</a> = 0; <a class="code" href="structdetectNet_1_1Detection.html#a42914a705a6cad72e56a9ad4fb68b0e6">Left</a> = 0; <a class="code" href="structdetectNet_1_1Detection.html#aa008c7f9d614b314281366b7797cd00a">Right</a> = 0; <a class="code" href="structdetectNet_1_1Detection.html#a2776e71cde1e6c41676bb5e6d12b1d0d">Top</a> = 0; <a class="code" href="structdetectNet_1_1Detection.html#a97869bd21815bfc1ca005fa057329ffe">Bottom</a> = 0; }                                                              </div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160; </div>
<div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="structdetectNet_1_1Detection.html#a985bb069089a55dc4a43d360486c1d1f">  198</a></span>&#160;                <span class="keyword">inline</span> <a class="code" href="structdetectNet_1_1Detection.html#a985bb069089a55dc4a43d360486c1d1f">Detection</a>()                                                                                                      { Reset(); }</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;        };</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160; </div>
<div class="line"><a name="l00204"></a><span class="lineno"><a class="line" href="group__detectNet.html#a29e74cde23a8dd541dbd848e457663d6">  204</a></span>&#160;        <span class="keyword">enum</span> <a class="code" href="group__detectNet.html#a29e74cde23a8dd541dbd848e457663d6">OverlayFlags</a></div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;        {</div>
<div class="line"><a name="l00206"></a><span class="lineno"><a class="line" href="group__detectNet.html#a29e74cde23a8dd541dbd848e457663d6a966eaaaa69ed08d36dcb862e3fc644bf">  206</a></span>&#160;                <a class="code" href="group__detectNet.html#a29e74cde23a8dd541dbd848e457663d6a966eaaaa69ed08d36dcb862e3fc644bf">OVERLAY_NONE</a>       = 0,                 </div>
<div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="group__detectNet.html#a29e74cde23a8dd541dbd848e457663d6aff23b9098d5bf0f91c31954001c2ff68">  207</a></span>&#160;                <a class="code" href="group__detectNet.html#a29e74cde23a8dd541dbd848e457663d6aff23b9098d5bf0f91c31954001c2ff68">OVERLAY_BOX</a>        = (1 &lt;&lt; 0),  </div>
<div class="line"><a name="l00208"></a><span class="lineno"><a class="line" href="group__detectNet.html#a29e74cde23a8dd541dbd848e457663d6a7eb5454e7a6dd53d90c2ddd33b00d049">  208</a></span>&#160;                <a class="code" href="group__detectNet.html#a29e74cde23a8dd541dbd848e457663d6a7eb5454e7a6dd53d90c2ddd33b00d049">OVERLAY_LABEL</a>       = (1 &lt;&lt; 1), </div>
<div class="line"><a name="l00209"></a><span class="lineno"><a class="line" href="group__detectNet.html#a29e74cde23a8dd541dbd848e457663d6af7ce69cd21d84fb3b963713da66756eb">  209</a></span>&#160;                <a class="code" href="group__detectNet.html#a29e74cde23a8dd541dbd848e457663d6af7ce69cd21d84fb3b963713da66756eb">OVERLAY_CONFIDENCE</a> = (1 &lt;&lt; 2),  </div>
<div class="line"><a name="l00210"></a><span class="lineno"><a class="line" href="group__detectNet.html#a29e74cde23a8dd541dbd848e457663d6a83823d45cf424993d605fd9705378ace">  210</a></span>&#160;                <a class="code" href="group__detectNet.html#a29e74cde23a8dd541dbd848e457663d6a83823d45cf424993d605fd9705378ace">OVERLAY_TRACKING</a>   = (1 &lt;&lt; 3),  </div>
<div class="line"><a name="l00211"></a><span class="lineno"><a class="line" href="group__detectNet.html#a29e74cde23a8dd541dbd848e457663d6af5f8642765b53b65fea273be879a5ab4">  211</a></span>&#160;                <a class="code" href="group__detectNet.html#a29e74cde23a8dd541dbd848e457663d6af5f8642765b53b65fea273be879a5ab4">OVERLAY_LINES</a>      = (1 &lt;&lt; 4),     </div>
<div class="line"><a name="l00212"></a><span class="lineno"><a class="line" href="group__detectNet.html#a29e74cde23a8dd541dbd848e457663d6ae65b9f9d5e1d39f02183f5f0f9816dfd">  212</a></span>&#160;                <a class="code" href="group__detectNet.html#a29e74cde23a8dd541dbd848e457663d6ae65b9f9d5e1d39f02183f5f0f9816dfd">OVERLAY_DEFAULT</a>    = <a class="code" href="group__detectNet.html#a29e74cde23a8dd541dbd848e457663d6aff23b9098d5bf0f91c31954001c2ff68">OVERLAY_BOX</a>|<a class="code" href="group__detectNet.html#a29e74cde23a8dd541dbd848e457663d6a7eb5454e7a6dd53d90c2ddd33b00d049">OVERLAY_LABEL</a>|<a class="code" href="group__detectNet.html#a29e74cde23a8dd541dbd848e457663d6af7ce69cd21d84fb3b963713da66756eb">OVERLAY_CONFIDENCE</a>, </div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;        };</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160; </div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;        <span class="keyword">static</span> uint32_t <a class="code" href="group__detectNet.html#a2bb2b446e26a466c9e355f1472f68e4c">OverlayFlagsFromStr</a>( <span class="keyword">const</span> <span class="keywordtype">char</span>* flags );</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160; </div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;        <span class="keyword">static</span> <a class="code" href="group__detectNet.html#classdetectNet">detectNet</a>* <a class="code" href="group__detectNet.html#a468b5e636096159500f3db327c31e8dd">Create</a>( <span class="keyword">const</span> <span class="keywordtype">char</span>* network=<span class="stringliteral">&quot;ssd-mobilenet-v2&quot;</span>, <span class="keywordtype">float</span> threshold=<a class="code" href="group__detectNet.html#ga56785ae0440a9e281a6dc44dc01039a5">DETECTNET_DEFAULT_CONFIDENCE_THRESHOLD</a>, </div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;                                                 uint32_t maxBatchSize=<a class="code" href="group__tensorNet.html#ga5a46a965749d6118e01307fd4d4865c9">DEFAULT_MAX_BATCH_SIZE</a>, <a class="code" href="group__tensorNet.html#gaac6604fd52c6e5db82877390e0378623">precisionType</a> precision=<a class="code" href="group__tensorNet.html#ggaac6604fd52c6e5db82877390e0378623a1d325738f49e8e4c424ff671624e66f9">TYPE_FASTEST</a>, </div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;                                                 <a class="code" href="group__tensorNet.html#gaa5d3f9981cdbd91516c1474006a80fe4">deviceType</a> device=<a class="code" href="group__tensorNet.html#ggaa5d3f9981cdbd91516c1474006a80fe4adc7f3f88455afa81458863e5b3092e4b">DEVICE_GPU</a>, <span class="keywordtype">bool</span> allowGPUFallback=<span class="keyword">true</span> );</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;                                                 </div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;        <span class="keyword">static</span> <a class="code" href="group__detectNet.html#classdetectNet">detectNet</a>* <a class="code" href="group__detectNet.html#a468b5e636096159500f3db327c31e8dd">Create</a>( <span class="keyword">const</span> <span class="keywordtype">char</span>* prototxt_path, <span class="keyword">const</span> <span class="keywordtype">char</span>* model_path, <span class="keywordtype">float</span> mean_pixel=0.0f, </div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;                                                 <span class="keyword">const</span> <span class="keywordtype">char</span>* class_labels=NULL, <span class="keywordtype">float</span> threshold=<a class="code" href="group__detectNet.html#ga56785ae0440a9e281a6dc44dc01039a5">DETECTNET_DEFAULT_CONFIDENCE_THRESHOLD</a>, </div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;                                                 <span class="keyword">const</span> <span class="keywordtype">char</span>* input = <a class="code" href="group__detectNet.html#gac824e329015dc8aed6e1112bfe21cb97">DETECTNET_DEFAULT_INPUT</a>, </div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;                                                 <span class="keyword">const</span> <span class="keywordtype">char</span>* coverage = <a class="code" href="group__detectNet.html#ga1e79603783719e4a79f2c68f1ef47621">DETECTNET_DEFAULT_COVERAGE</a>, </div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;                                                 <span class="keyword">const</span> <span class="keywordtype">char</span>* bboxes = <a class="code" href="group__detectNet.html#gac8c52a38ffa041865ed71fd2ea806620">DETECTNET_DEFAULT_BBOX</a>,</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;                                                 uint32_t maxBatchSize=<a class="code" href="group__tensorNet.html#ga5a46a965749d6118e01307fd4d4865c9">DEFAULT_MAX_BATCH_SIZE</a>, </div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;                                                 <a class="code" href="group__tensorNet.html#gaac6604fd52c6e5db82877390e0378623">precisionType</a> precision=<a class="code" href="group__tensorNet.html#ggaac6604fd52c6e5db82877390e0378623a1d325738f49e8e4c424ff671624e66f9">TYPE_FASTEST</a>,</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;                                                 <a class="code" href="group__tensorNet.html#gaa5d3f9981cdbd91516c1474006a80fe4">deviceType</a> device=<a class="code" href="group__tensorNet.html#ggaa5d3f9981cdbd91516c1474006a80fe4adc7f3f88455afa81458863e5b3092e4b">DEVICE_GPU</a>, <span class="keywordtype">bool</span> allowGPUFallback=<span class="keyword">true</span> );</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;        </div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;        <span class="keyword">static</span> <a class="code" href="group__detectNet.html#classdetectNet">detectNet</a>* <a class="code" href="group__detectNet.html#a468b5e636096159500f3db327c31e8dd">Create</a>( <span class="keyword">const</span> <span class="keywordtype">char</span>* prototxt_path, <span class="keyword">const</span> <span class="keywordtype">char</span>* model_path, <span class="keywordtype">float</span> mean_pixel, </div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;                                                 <span class="keyword">const</span> <span class="keywordtype">char</span>* class_labels, <span class="keyword">const</span> <span class="keywordtype">char</span>* class_colors,</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;                                                 <span class="keywordtype">float</span> threshold=<a class="code" href="group__detectNet.html#ga56785ae0440a9e281a6dc44dc01039a5">DETECTNET_DEFAULT_CONFIDENCE_THRESHOLD</a>, </div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;                                                 <span class="keyword">const</span> <span class="keywordtype">char</span>* input = <a class="code" href="group__detectNet.html#gac824e329015dc8aed6e1112bfe21cb97">DETECTNET_DEFAULT_INPUT</a>, </div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;                                                 <span class="keyword">const</span> <span class="keywordtype">char</span>* coverage = <a class="code" href="group__detectNet.html#ga1e79603783719e4a79f2c68f1ef47621">DETECTNET_DEFAULT_COVERAGE</a>, </div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;                                                 <span class="keyword">const</span> <span class="keywordtype">char</span>* bboxes = <a class="code" href="group__detectNet.html#gac8c52a38ffa041865ed71fd2ea806620">DETECTNET_DEFAULT_BBOX</a>,</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;                                                 uint32_t maxBatchSize=<a class="code" href="group__tensorNet.html#ga5a46a965749d6118e01307fd4d4865c9">DEFAULT_MAX_BATCH_SIZE</a>, </div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;                                                 <a class="code" href="group__tensorNet.html#gaac6604fd52c6e5db82877390e0378623">precisionType</a> precision=<a class="code" href="group__tensorNet.html#ggaac6604fd52c6e5db82877390e0378623a1d325738f49e8e4c424ff671624e66f9">TYPE_FASTEST</a>,</div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;                                                 <a class="code" href="group__tensorNet.html#gaa5d3f9981cdbd91516c1474006a80fe4">deviceType</a> device=<a class="code" href="group__tensorNet.html#ggaa5d3f9981cdbd91516c1474006a80fe4adc7f3f88455afa81458863e5b3092e4b">DEVICE_GPU</a>, <span class="keywordtype">bool</span> allowGPUFallback=<span class="keyword">true</span> );</div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;                                                 </div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;        <span class="keyword">static</span> <a class="code" href="group__detectNet.html#classdetectNet">detectNet</a>* <a class="code" href="group__detectNet.html#a468b5e636096159500f3db327c31e8dd">Create</a>( <span class="keyword">const</span> <span class="keywordtype">char</span>* model_path, <span class="keyword">const</span> <span class="keywordtype">char</span>* class_labels, <span class="keywordtype">float</span> threshold, </div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;                                                 <span class="keyword">const</span> <span class="keywordtype">char</span>* input, <span class="keyword">const</span> <a class="code" href="tensorNet_8h.html#a64c8f3dfeacfa962ff9e23c586aedd1b">Dims3</a>&amp; inputDims, </div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;                                                 <span class="keyword">const</span> <span class="keywordtype">char</span>* output, <span class="keyword">const</span> <span class="keywordtype">char</span>* numDetections,</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;                                                 uint32_t maxBatchSize=<a class="code" href="group__tensorNet.html#ga5a46a965749d6118e01307fd4d4865c9">DEFAULT_MAX_BATCH_SIZE</a>, </div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;                                                 <a class="code" href="group__tensorNet.html#gaac6604fd52c6e5db82877390e0378623">precisionType</a> precision=<a class="code" href="group__tensorNet.html#ggaac6604fd52c6e5db82877390e0378623a1d325738f49e8e4c424ff671624e66f9">TYPE_FASTEST</a>,</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;                                                 <a class="code" href="group__tensorNet.html#gaa5d3f9981cdbd91516c1474006a80fe4">deviceType</a> device=<a class="code" href="group__tensorNet.html#ggaa5d3f9981cdbd91516c1474006a80fe4adc7f3f88455afa81458863e5b3092e4b">DEVICE_GPU</a>, <span class="keywordtype">bool</span> allowGPUFallback=<span class="keyword">true</span> );</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160; </div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;        <span class="keyword">static</span> <a class="code" href="group__detectNet.html#classdetectNet">detectNet</a>* <a class="code" href="group__detectNet.html#a468b5e636096159500f3db327c31e8dd">Create</a>( <span class="keywordtype">int</span> argc, <span class="keywordtype">char</span>** argv );</div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;        </div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;        <span class="keyword">static</span> <a class="code" href="group__detectNet.html#classdetectNet">detectNet</a>* <a class="code" href="group__detectNet.html#a468b5e636096159500f3db327c31e8dd">Create</a>( <span class="keyword">const</span> <a class="code" href="group__commandLine.html#classcommandLine">commandLine</a>&amp; cmdLine );</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;        </div>
<div class="line"><a name="l00308"></a><span class="lineno"><a class="line" href="group__detectNet.html#a8c336e6b018a780e7ca74897d1bce628">  308</a></span>&#160;        <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__detectNet.html#a8c336e6b018a780e7ca74897d1bce628">Usage</a>()               { <span class="keywordflow">return</span> <a class="code" href="group__detectNet.html#gad5f43885a04689f10c6f9d297ab88a8d">DETECTNET_USAGE_STRING</a>; }</div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160; </div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;        <span class="keyword">virtual</span> <a class="code" href="group__detectNet.html#a82c0e177e0da142fa22aa7580077307d">~detectNet</a>();</div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;        </div>
<div class="line"><a name="l00324"></a><span class="lineno"><a class="line" href="group__detectNet.html#a158f5cf9d366668b8229375c1a342a04">  324</a></span>&#160;        <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt; <span class="keywordtype">int</span> <a class="code" href="group__detectNet.html#a158f5cf9d366668b8229375c1a342a04">Detect</a>( T* image, uint32_t width, uint32_t height, <a class="code" href="structdetectNet_1_1Detection.html">Detection</a>** detections, uint32_t overlay=<a class="code" href="group__detectNet.html#a29e74cde23a8dd541dbd848e457663d6ae65b9f9d5e1d39f02183f5f0f9816dfd">OVERLAY_DEFAULT</a> )          { <span class="keywordflow">return</span> <a class="code" href="group__detectNet.html#a158f5cf9d366668b8229375c1a342a04">Detect</a>((<span class="keywordtype">void</span>*)image, width, height, imageFormatFromType&lt;T&gt;(), detections, overlay); }</div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;        </div>
<div class="line"><a name="l00336"></a><span class="lineno"><a class="line" href="group__detectNet.html#a3cd0725bfab4ec8a54192eae4c7bac45">  336</a></span>&#160;        <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt; <span class="keywordtype">int</span> <a class="code" href="group__detectNet.html#a3cd0725bfab4ec8a54192eae4c7bac45">Detect</a>( T* image, uint32_t width, uint32_t height, <a class="code" href="structdetectNet_1_1Detection.html">Detection</a>* detections, uint32_t overlay=<a class="code" href="group__detectNet.html#a29e74cde23a8dd541dbd848e457663d6ae65b9f9d5e1d39f02183f5f0f9816dfd">OVERLAY_DEFAULT</a> )           { <span class="keywordflow">return</span> <a class="code" href="group__detectNet.html#a3cd0725bfab4ec8a54192eae4c7bac45">Detect</a>((<span class="keywordtype">void</span>*)image, width, height, imageFormatFromType&lt;T&gt;(), detections, overlay); }</div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;        </div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;        <span class="keywordtype">int</span> <a class="code" href="group__detectNet.html#a158f5cf9d366668b8229375c1a342a04">Detect</a>( <span class="keywordtype">void</span>* input, uint32_t width, uint32_t height, <a class="code" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a> format, Detection** detections, uint32_t overlay=<a class="code" href="group__detectNet.html#a29e74cde23a8dd541dbd848e457663d6ae65b9f9d5e1d39f02183f5f0f9816dfd">OVERLAY_DEFAULT</a> );</div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160; </div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;        <span class="keywordtype">int</span> <a class="code" href="group__detectNet.html#a158f5cf9d366668b8229375c1a342a04">Detect</a>( <span class="keywordtype">void</span>* input, uint32_t width, uint32_t height, <a class="code" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a> format, Detection* detections, uint32_t overlay=<a class="code" href="group__detectNet.html#a29e74cde23a8dd541dbd848e457663d6ae65b9f9d5e1d39f02183f5f0f9816dfd">OVERLAY_DEFAULT</a> );</div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;        </div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;        <span class="keywordtype">int</span> <a class="code" href="group__detectNet.html#a158f5cf9d366668b8229375c1a342a04">Detect</a>( <span class="keywordtype">float</span>* input, uint32_t width, uint32_t height, Detection** detections, uint32_t overlay=<a class="code" href="group__detectNet.html#a29e74cde23a8dd541dbd848e457663d6ae65b9f9d5e1d39f02183f5f0f9816dfd">OVERLAY_DEFAULT</a> );</div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160; </div>
<div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;        <span class="keywordtype">int</span> <a class="code" href="group__detectNet.html#a158f5cf9d366668b8229375c1a342a04">Detect</a>( <span class="keywordtype">float</span>* input, uint32_t width, uint32_t height, Detection* detections, uint32_t overlay=<a class="code" href="group__detectNet.html#a29e74cde23a8dd541dbd848e457663d6ae65b9f9d5e1d39f02183f5f0f9816dfd">OVERLAY_DEFAULT</a> );</div>
<div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;        </div>
<div class="line"><a name="l00393"></a><span class="lineno"><a class="line" href="group__detectNet.html#a94ff26d023e725a5c2da5be4f8d237d5">  393</a></span>&#160;        <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt; <span class="keywordtype">bool</span> <a class="code" href="group__detectNet.html#a94ff26d023e725a5c2da5be4f8d237d5">Overlay</a>( T* input, T* output, uint32_t width, uint32_t height, <a class="code" href="structdetectNet_1_1Detection.html">Detection</a>* detections, uint32_t numDetections, uint32_t flags=<a class="code" href="group__detectNet.html#a29e74cde23a8dd541dbd848e457663d6ae65b9f9d5e1d39f02183f5f0f9816dfd">OVERLAY_DEFAULT</a> )                        { <span class="keywordflow">return</span> <a class="code" href="group__detectNet.html#a94ff26d023e725a5c2da5be4f8d237d5">Overlay</a>(input, output, width, height, imageFormatFromType&lt;T&gt;(), detections, numDetections, flags); }</div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;        </div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="group__detectNet.html#a94ff26d023e725a5c2da5be4f8d237d5">Overlay</a>( <span class="keywordtype">void</span>* input, <span class="keywordtype">void</span>* output, uint32_t width, uint32_t height, <a class="code" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a> format, Detection* detections, uint32_t numDetections, uint32_t flags=<a class="code" href="group__detectNet.html#a29e74cde23a8dd541dbd848e457663d6ae65b9f9d5e1d39f02183f5f0f9816dfd">OVERLAY_DEFAULT</a> );</div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;        </div>
<div class="line"><a name="l00408"></a><span class="lineno"><a class="line" href="group__detectNet.html#ad50b3774ee7350d0c256d94a785ba9df">  408</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">float</span> <a class="code" href="group__detectNet.html#ad50b3774ee7350d0c256d94a785ba9df">GetThreshold</a>()<span class="keyword"> const                                                       </span>{ <span class="keywordflow">return</span> <a class="code" href="group__detectNet.html#afcd4d30a1750b48924ec837c2ddb6cca">mConfidenceThreshold</a>; }</div>
<div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160; </div>
<div class="line"><a name="l00414"></a><span class="lineno"><a class="line" href="group__detectNet.html#a1cb45695bf95d5fb5db48976d1de8ae2">  414</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__detectNet.html#a1cb45695bf95d5fb5db48976d1de8ae2">SetThreshold</a>( <span class="keywordtype">float</span> threshold )                                     { <a class="code" href="group__detectNet.html#afcd4d30a1750b48924ec837c2ddb6cca">mConfidenceThreshold</a> = threshold; }</div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160; </div>
<div class="line"><a name="l00419"></a><span class="lineno"><a class="line" href="group__detectNet.html#a9bb59636a3a0ba168752bb5e9f76421c">  419</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">float</span> <a class="code" href="group__detectNet.html#a9bb59636a3a0ba168752bb5e9f76421c">GetConfidenceThreshold</a>()<span class="keyword"> const                                     </span>{ <span class="keywordflow">return</span> <a class="code" href="group__detectNet.html#afcd4d30a1750b48924ec837c2ddb6cca">mConfidenceThreshold</a>; }</div>
<div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160; </div>
<div class="line"><a name="l00424"></a><span class="lineno"><a class="line" href="group__detectNet.html#a7d9740240d5def31cdbb92c90fb3f26f">  424</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__detectNet.html#a7d9740240d5def31cdbb92c90fb3f26f">SetConfidenceThreshold</a>( <span class="keywordtype">float</span> threshold )                   { <a class="code" href="group__detectNet.html#afcd4d30a1750b48924ec837c2ddb6cca">mConfidenceThreshold</a> = threshold; }</div>
<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160; </div>
<div class="line"><a name="l00429"></a><span class="lineno"><a class="line" href="group__detectNet.html#ae63aba1ee4e12f8afab35f0c928f4ef6">  429</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">float</span> <a class="code" href="group__detectNet.html#ae63aba1ee4e12f8afab35f0c928f4ef6">GetClusteringThreshold</a>()<span class="keyword"> const                                     </span>{ <span class="keywordflow">return</span> <a class="code" href="group__detectNet.html#a07f8ddbe21585c837675e5e937b4dc1d">mClusteringThreshold</a>; }</div>
<div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160; </div>
<div class="line"><a name="l00434"></a><span class="lineno"><a class="line" href="group__detectNet.html#a43266dab4ba9e3115c44df93ee2f34d8">  434</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__detectNet.html#a43266dab4ba9e3115c44df93ee2f34d8">SetClusteringThreshold</a>( <span class="keywordtype">float</span> threshold )                   { <a class="code" href="group__detectNet.html#a07f8ddbe21585c837675e5e937b4dc1d">mClusteringThreshold</a> = threshold; }</div>
<div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160; </div>
<div class="line"><a name="l00439"></a><span class="lineno"><a class="line" href="group__detectNet.html#a130307a2bac02b13834116eb72728530">  439</a></span>&#160;        <span class="keyword">inline</span> <a class="code" href="group__objectTracker.html#classobjectTracker">objectTracker</a>* <a class="code" href="group__detectNet.html#a130307a2bac02b13834116eb72728530">GetTracker</a>()<span class="keyword"> const                                        </span>{ <span class="keywordflow">return</span> <a class="code" href="group__detectNet.html#a70f7dc6392ad89b7f61339830d145577">mTracker</a>; }</div>
<div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;        </div>
<div class="line"><a name="l00444"></a><span class="lineno"><a class="line" href="group__detectNet.html#a83cf2684627e8b6f3d14eee8f02def61">  444</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__detectNet.html#a83cf2684627e8b6f3d14eee8f02def61">SetTracker</a>( <a class="code" href="group__objectTracker.html#classobjectTracker">objectTracker</a>* tracker )                                { <a class="code" href="group__detectNet.html#a70f7dc6392ad89b7f61339830d145577">mTracker</a> = tracker; }</div>
<div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;        </div>
<div class="line"><a name="l00450"></a><span class="lineno"><a class="line" href="group__detectNet.html#a38689b7d4b83723038677d66c1961974">  450</a></span>&#160;        <span class="keyword">inline</span> uint32_t <a class="code" href="group__detectNet.html#a38689b7d4b83723038677d66c1961974">GetMaxDetections</a>()<span class="keyword"> const                                        </span>{ <span class="keywordflow">return</span> <a class="code" href="group__detectNet.html#a38283495a61399d8347d67eb95dbe321">mMaxDetections</a>; } </div>
<div class="line"><a name="l00451"></a><span class="lineno">  451</span>&#160;                </div>
<div class="line"><a name="l00455"></a><span class="lineno"><a class="line" href="group__detectNet.html#acec72d01e020cf5bc50747abb0245f06">  455</a></span>&#160;        <span class="keyword">inline</span> uint32_t <a class="code" href="group__detectNet.html#acec72d01e020cf5bc50747abb0245f06">GetNumClasses</a>()<span class="keyword"> const                                           </span>{ <span class="keywordflow">return</span> <a class="code" href="group__detectNet.html#acf351fe11541d733a37ba99c9b0c8aa3">mNumClasses</a>; }</div>
<div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160; </div>
<div class="line"><a name="l00460"></a><span class="lineno"><a class="line" href="group__detectNet.html#a80524a777ce4fc368922ac3cd8f97973">  460</a></span>&#160;        <span class="keyword">inline</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__detectNet.html#a80524a777ce4fc368922ac3cd8f97973">GetClassLabel</a>( uint32_t index )<span class="keyword"> const                </span>{ <span class="keywordflow">return</span> <a class="code" href="group__detectNet.html#a6aeee309257b1a42df275fdfe948a585">GetClassDesc</a>(index); }</div>
<div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;        </div>
<div class="line"><a name="l00465"></a><span class="lineno"><a class="line" href="group__detectNet.html#a6aeee309257b1a42df275fdfe948a585">  465</a></span>&#160;        <span class="keyword">inline</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__detectNet.html#a6aeee309257b1a42df275fdfe948a585">GetClassDesc</a>( uint32_t index )<span class="keyword">       const           </span>{ <span class="keywordflow">if</span>(index &gt;= <a class="code" href="group__detectNet.html#a57cdfaea245446565f4e6f72edb0f857">mClassDesc</a>.size()) { printf(<span class="stringliteral">&quot;invalid class %u\n&quot;</span>, index); <span class="keywordflow">return</span> <span class="stringliteral">&quot;Invalid&quot;</span>; } <span class="keywordflow">return</span> <a class="code" href="group__detectNet.html#a57cdfaea245446565f4e6f72edb0f857">mClassDesc</a>[index].c_str(); }</div>
<div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;        </div>
<div class="line"><a name="l00470"></a><span class="lineno"><a class="line" href="group__detectNet.html#a68322545826d7b866a70d5f9758f4d48">  470</a></span>&#160;        <span class="keyword">inline</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__detectNet.html#a68322545826d7b866a70d5f9758f4d48">GetClassSynset</a>( uint32_t index )<span class="keyword"> const               </span>{ <span class="keywordflow">return</span> <a class="code" href="group__detectNet.html#a1c85b56e7b1e4b3e474f47c7f18a157d">mClassSynset</a>[index].c_str(); }</div>
<div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160;        </div>
<div class="line"><a name="l00475"></a><span class="lineno"><a class="line" href="group__detectNet.html#a8085235ab275b1bad3dcde14ec1223ed">  475</a></span>&#160;        <span class="keyword">inline</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__detectNet.html#a8085235ab275b1bad3dcde14ec1223ed">GetClassPath</a>()<span class="keyword"> const                                         </span>{ <span class="keywordflow">return</span> <a class="code" href="group__detectNet.html#a9e638cff75c285b31b5cb538ff279352">mClassPath</a>.c_str(); }</div>
<div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160; </div>
<div class="line"><a name="l00480"></a><span class="lineno"><a class="line" href="group__detectNet.html#ad099b492b82a1d7a55955ecf990fbea8">  480</a></span>&#160;        <span class="keyword">inline</span> float4 <a class="code" href="group__detectNet.html#ad099b492b82a1d7a55955ecf990fbea8">GetClassColor</a>( uint32_t classIndex )<span class="keyword"> const                </span>{ <span class="keywordflow">return</span> <a class="code" href="group__detectNet.html#aa29864c6477dd396d5054a67d7406b9f">mClassColors</a>[classIndex]; }</div>
<div class="line"><a name="l00481"></a><span class="lineno">  481</span>&#160; </div>
<div class="line"><a name="l00485"></a><span class="lineno"><a class="line" href="group__detectNet.html#afac4f7b876a6ee391599bbce3f2982b1">  485</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__detectNet.html#afac4f7b876a6ee391599bbce3f2982b1">SetClassColor</a>( uint32_t classIndex, <span class="keyword">const</span> float4&amp; <a class="code" href="cudaPointCloud_8h.html#a549d5369c70bd71a70798aa5b1ea4270">color</a> )                                           { <a class="code" href="group__detectNet.html#aa29864c6477dd396d5054a67d7406b9f">mClassColors</a>[classIndex] = <a class="code" href="cudaPointCloud_8h.html#a549d5369c70bd71a70798aa5b1ea4270">color</a>; }</div>
<div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160;        </div>
<div class="line"><a name="l00490"></a><span class="lineno"><a class="line" href="group__detectNet.html#ab9ba7c63d2fc417d0908324fd0dc2223">  490</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__detectNet.html#ab9ba7c63d2fc417d0908324fd0dc2223">SetClassColor</a>( uint32_t classIndex, <span class="keywordtype">float</span> r, <span class="keywordtype">float</span> g, <span class="keywordtype">float</span> b, <span class="keywordtype">float</span> a=255.0f )     { <a class="code" href="group__detectNet.html#aa29864c6477dd396d5054a67d7406b9f">mClassColors</a>[classIndex] = <a class="code" href="cudaMath_8h.html#a5ac86555d5a546106ec01ed56f8d48b4">make_float4</a>(r,g,b,a); }</div>
<div class="line"><a name="l00491"></a><span class="lineno">  491</span>&#160;        </div>
<div class="line"><a name="l00495"></a><span class="lineno"><a class="line" href="group__detectNet.html#a6259a0c37ec3a3246bf23aad152c69e4">  495</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">float</span> <a class="code" href="group__detectNet.html#a6259a0c37ec3a3246bf23aad152c69e4">GetLineWidth</a>()<span class="keyword"> const                                                       </span>{ <span class="keywordflow">return</span> <a class="code" href="group__detectNet.html#a04233d3f697e8e21116a490b9d362a92">mLineWidth</a>; }</div>
<div class="line"><a name="l00496"></a><span class="lineno">  496</span>&#160;        </div>
<div class="line"><a name="l00500"></a><span class="lineno"><a class="line" href="group__detectNet.html#a0e8b7f336a5531ce9446b4c63e7143e4">  500</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__detectNet.html#a0e8b7f336a5531ce9446b4c63e7143e4">SetLineWidth</a>( <span class="keywordtype">float</span> width )                                         { <a class="code" href="group__detectNet.html#a04233d3f697e8e21116a490b9d362a92">mLineWidth</a> = width; }</div>
<div class="line"><a name="l00501"></a><span class="lineno">  501</span>&#160;        </div>
<div class="line"><a name="l00505"></a><span class="lineno"><a class="line" href="group__detectNet.html#aefb9214feb29121368dfaa5cf4082565">  505</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">float</span> <a class="code" href="group__detectNet.html#aefb9214feb29121368dfaa5cf4082565">GetOverlayAlpha</a>()<span class="keyword"> const                                            </span>{ <span class="keywordflow">return</span> <a class="code" href="group__detectNet.html#a3a39ab13d93571f33743756c6436c9e1">mOverlayAlpha</a>; }</div>
<div class="line"><a name="l00506"></a><span class="lineno">  506</span>&#160;        </div>
<div class="line"><a name="l00510"></a><span class="lineno">  510</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="group__detectNet.html#ac2ffd50b5fb52d6ceea09af29b144afc">SetOverlayAlpha</a>( <span class="keywordtype">float</span> <a class="code" href="cudaVector_8h.html#aa94774faf063d34dab6f3f374d73ea7a">alpha</a> );</div>
<div class="line"><a name="l00511"></a><span class="lineno">  511</span>&#160; </div>
<div class="line"><a name="l00512"></a><span class="lineno">  512</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00513"></a><span class="lineno">  513</span>&#160; </div>
<div class="line"><a name="l00514"></a><span class="lineno">  514</span>&#160;        <span class="comment">// constructor</span></div>
<div class="line"><a name="l00515"></a><span class="lineno">  515</span>&#160;        <a class="code" href="group__detectNet.html#a07a419d97f14aa0962b737e671ff438a">detectNet</a>( <span class="keywordtype">float</span> meanPixel=0.0f );</div>
<div class="line"><a name="l00516"></a><span class="lineno">  516</span>&#160; </div>
<div class="line"><a name="l00517"></a><span class="lineno">  517</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="group__detectNet.html#acb367fb540a1dfb719c44ae0e4cdb045">allocDetections</a>();</div>
<div class="line"><a name="l00518"></a><span class="lineno">  518</span>&#160; </div>
<div class="line"><a name="l00519"></a><span class="lineno">  519</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="group__detectNet.html#a5ab26d1cfb1710a826cae4473c7173f5">loadClassInfo</a>( <span class="keyword">const</span> <span class="keywordtype">char</span>* filename );</div>
<div class="line"><a name="l00520"></a><span class="lineno">  520</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="group__detectNet.html#a2c649836482b3bfe12f4ab671387aa77">loadClassColors</a>( <span class="keyword">const</span> <span class="keywordtype">char</span>* filename );</div>
<div class="line"><a name="l00521"></a><span class="lineno">  521</span>&#160;        </div>
<div class="line"><a name="l00522"></a><span class="lineno">  522</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="group__detectNet.html#a77af699123da152d3e83ca355ed4de11">init</a>( <span class="keyword">const</span> <span class="keywordtype">char</span>* prototxt_path, <span class="keyword">const</span> <span class="keywordtype">char</span>* model_path, <span class="keyword">const</span> <span class="keywordtype">char</span>* class_labels, <span class="keyword">const</span> <span class="keywordtype">char</span>* class_colors,</div>
<div class="line"><a name="l00523"></a><span class="lineno">  523</span>&#160;                         <span class="keywordtype">float</span> threshold, <span class="keyword">const</span> <span class="keywordtype">char</span>* input, <span class="keyword">const</span> <span class="keywordtype">char</span>* coverage, <span class="keyword">const</span> <span class="keywordtype">char</span>* bboxes, uint32_t maxBatchSize, </div>
<div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160;                         <a class="code" href="group__tensorNet.html#gaac6604fd52c6e5db82877390e0378623">precisionType</a> precision, <a class="code" href="group__tensorNet.html#gaa5d3f9981cdbd91516c1474006a80fe4">deviceType</a> device, <span class="keywordtype">bool</span> allowGPUFallback );</div>
<div class="line"><a name="l00525"></a><span class="lineno">  525</span>&#160;        </div>
<div class="line"><a name="l00526"></a><span class="lineno">  526</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="group__detectNet.html#a54aa7f77769d35fbd92d205904d364a2">preProcess</a>( <span class="keywordtype">void</span>* input, uint32_t width, uint32_t height, <a class="code" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a> format );</div>
<div class="line"><a name="l00527"></a><span class="lineno">  527</span>&#160;        <span class="keywordtype">int</span> <a class="code" href="group__detectNet.html#a283969d1290eb6675356b7a96ecb89e6">postProcess</a>( <span class="keywordtype">void</span>* input, uint32_t width, uint32_t height, <a class="code" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a> format, Detection* detections );</div>
<div class="line"><a name="l00528"></a><span class="lineno">  528</span>&#160;        </div>
<div class="line"><a name="l00529"></a><span class="lineno">  529</span>&#160;        <span class="keywordtype">int</span> <a class="code" href="group__detectNet.html#a3692a43f224a5b9178203a3e6c6d7b51">postProcessSSD_UFF</a>( Detection* detections, uint32_t width, uint32_t height );</div>
<div class="line"><a name="l00530"></a><span class="lineno">  530</span>&#160;        <span class="keywordtype">int</span> <a class="code" href="group__detectNet.html#a41a6499dc49c6598b2ed4bbfb7053898">postProcessSSD_ONNX</a>( Detection* detections, uint32_t width, uint32_t height );</div>
<div class="line"><a name="l00531"></a><span class="lineno">  531</span>&#160;        <span class="keywordtype">int</span> <a class="code" href="group__detectNet.html#ad3f419e16f510e8c3a21084b0f99719d">postProcessDetectNet</a>( Detection* detections, uint32_t width, uint32_t height );</div>
<div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160;        <span class="keywordtype">int</span> <a class="code" href="group__detectNet.html#a7eacf562b466e13af2303f0360543a77">postProcessDetectNet_v2</a>( Detection* detections, uint32_t width, uint32_t height );</div>
<div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;        </div>
<div class="line"><a name="l00534"></a><span class="lineno">  534</span>&#160;        <span class="keywordtype">int</span> <a class="code" href="group__detectNet.html#ad72b6e8d9c429fd2d4a9a58b829cae90">clusterDetections</a>( Detection* detections, <span class="keywordtype">int</span> n );</div>
<div class="line"><a name="l00535"></a><span class="lineno">  535</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="group__detectNet.html#ae25ca7f51a3235011442ac1edeafe1d8">sortDetections</a>( Detection* detections, <span class="keywordtype">int</span> numDetections );</div>
<div class="line"><a name="l00536"></a><span class="lineno">  536</span>&#160; </div>
<div class="line"><a name="l00537"></a><span class="lineno"><a class="line" href="group__detectNet.html#a70f7dc6392ad89b7f61339830d145577">  537</a></span>&#160;        <a class="code" href="group__objectTracker.html#classobjectTracker">objectTracker</a>* <a class="code" href="group__detectNet.html#a70f7dc6392ad89b7f61339830d145577">mTracker</a>;</div>
<div class="line"><a name="l00538"></a><span class="lineno">  538</span>&#160;        </div>
<div class="line"><a name="l00539"></a><span class="lineno"><a class="line" href="group__detectNet.html#afcd4d30a1750b48924ec837c2ddb6cca">  539</a></span>&#160;        <span class="keywordtype">float</span> <a class="code" href="group__detectNet.html#afcd4d30a1750b48924ec837c2ddb6cca">mConfidenceThreshold</a>;      <span class="comment">// TODO change this to per-class</span></div>
<div class="line"><a name="l00540"></a><span class="lineno"><a class="line" href="group__detectNet.html#a07f8ddbe21585c837675e5e937b4dc1d">  540</a></span>&#160;        <span class="keywordtype">float</span> <a class="code" href="group__detectNet.html#a07f8ddbe21585c837675e5e937b4dc1d">mClusteringThreshold</a>;      <span class="comment">// TODO change this to per-class</span></div>
<div class="line"><a name="l00541"></a><span class="lineno">  541</span>&#160;        </div>
<div class="line"><a name="l00542"></a><span class="lineno"><a class="line" href="group__detectNet.html#ab8e3c3649acd8bb8d7cd45653dbbb7a0">  542</a></span>&#160;        <span class="keywordtype">float</span> <a class="code" href="group__detectNet.html#ab8e3c3649acd8bb8d7cd45653dbbb7a0">mMeanPixel</a>;</div>
<div class="line"><a name="l00543"></a><span class="lineno"><a class="line" href="group__detectNet.html#a04233d3f697e8e21116a490b9d362a92">  543</a></span>&#160;        <span class="keywordtype">float</span> <a class="code" href="group__detectNet.html#a04233d3f697e8e21116a490b9d362a92">mLineWidth</a>;</div>
<div class="line"><a name="l00544"></a><span class="lineno"><a class="line" href="group__detectNet.html#a3a39ab13d93571f33743756c6436c9e1">  544</a></span>&#160;        <span class="keywordtype">float</span> <a class="code" href="group__detectNet.html#a3a39ab13d93571f33743756c6436c9e1">mOverlayAlpha</a>;</div>
<div class="line"><a name="l00545"></a><span class="lineno">  545</span>&#160;        </div>
<div class="line"><a name="l00546"></a><span class="lineno"><a class="line" href="group__detectNet.html#aa29864c6477dd396d5054a67d7406b9f">  546</a></span>&#160;        float4* <a class="code" href="group__detectNet.html#aa29864c6477dd396d5054a67d7406b9f">mClassColors</a>;</div>
<div class="line"><a name="l00547"></a><span class="lineno">  547</span>&#160;        </div>
<div class="line"><a name="l00548"></a><span class="lineno"><a class="line" href="group__detectNet.html#a57cdfaea245446565f4e6f72edb0f857">  548</a></span>&#160;        std::vector&lt;std::string&gt; <a class="code" href="group__detectNet.html#a57cdfaea245446565f4e6f72edb0f857">mClassDesc</a>;</div>
<div class="line"><a name="l00549"></a><span class="lineno"><a class="line" href="group__detectNet.html#a1c85b56e7b1e4b3e474f47c7f18a157d">  549</a></span>&#160;        std::vector&lt;std::string&gt; <a class="code" href="group__detectNet.html#a1c85b56e7b1e4b3e474f47c7f18a157d">mClassSynset</a>;</div>
<div class="line"><a name="l00550"></a><span class="lineno">  550</span>&#160; </div>
<div class="line"><a name="l00551"></a><span class="lineno"><a class="line" href="group__detectNet.html#a9e638cff75c285b31b5cb538ff279352">  551</a></span>&#160;        std::string <a class="code" href="group__detectNet.html#a9e638cff75c285b31b5cb538ff279352">mClassPath</a>;</div>
<div class="line"><a name="l00552"></a><span class="lineno"><a class="line" href="group__detectNet.html#acf351fe11541d733a37ba99c9b0c8aa3">  552</a></span>&#160;        uint32_t          <a class="code" href="group__detectNet.html#acf351fe11541d733a37ba99c9b0c8aa3">mNumClasses</a>;</div>
<div class="line"><a name="l00553"></a><span class="lineno">  553</span>&#160; </div>
<div class="line"><a name="l00554"></a><span class="lineno"><a class="line" href="group__detectNet.html#ab2da21dcd11e7e91054194b0c87332d9">  554</a></span>&#160;        <a class="code" href="structdetectNet_1_1Detection.html">Detection</a>* <a class="code" href="group__detectNet.html#ab2da21dcd11e7e91054194b0c87332d9">mDetectionSets</a>;      <span class="comment">// list of detections, mNumDetectionSets * mMaxDetections</span></div>
<div class="line"><a name="l00555"></a><span class="lineno"><a class="line" href="group__detectNet.html#a9696a2f1ec59adfadc070e408c3d2abd">  555</a></span>&#160;        uint32_t   <a class="code" href="group__detectNet.html#a9696a2f1ec59adfadc070e408c3d2abd">mDetectionSet</a>;       <span class="comment">// index of next detection set to use</span></div>
<div class="line"><a name="l00556"></a><span class="lineno"><a class="line" href="group__detectNet.html#a38283495a61399d8347d67eb95dbe321">  556</a></span>&#160;        uint32_t         <a class="code" href="group__detectNet.html#a38283495a61399d8347d67eb95dbe321">mMaxDetections</a>;        <span class="comment">// number of raw detections in the grid</span></div>
<div class="line"><a name="l00557"></a><span class="lineno">  557</span>&#160; </div>
<div class="line"><a name="l00558"></a><span class="lineno"><a class="line" href="group__detectNet.html#a77b8f8059780ab552d97a046c32e1f8a">  558</a></span>&#160;        <span class="keyword">static</span> <span class="keyword">const</span> uint32_t <a class="code" href="group__detectNet.html#a77b8f8059780ab552d97a046c32e1f8a">mNumDetectionSets</a> = 16; <span class="comment">// size of detection ringbuffer</span></div>
<div class="line"><a name="l00559"></a><span class="lineno">  559</span>&#160;};</div>
<div class="line"><a name="l00560"></a><span class="lineno">  560</span>&#160; </div>
<div class="line"><a name="l00561"></a><span class="lineno">  561</span>&#160; </div>
<div class="line"><a name="l00562"></a><span class="lineno">  562</span>&#160;<span class="comment">// bounding box IOU</span></div>
<div class="line"><a name="l00563"></a><span class="lineno"><a class="line" href="structdetectNet_1_1Detection.html#acf01a244de6de3f20e8e3930bae0f60e">  563</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">float</span> <a class="code" href="structdetectNet_1_1Detection.html#acf01a244de6de3f20e8e3930bae0f60e">detectNet::Detection::IOU</a>( <span class="keywordtype">float</span> x1, <span class="keywordtype">float</span> y1, <span class="keywordtype">float</span> x2, <span class="keywordtype">float</span> y2 )<span class="keyword"> const          </span></div>
<div class="line"><a name="l00564"></a><span class="lineno">  564</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00565"></a><span class="lineno">  565</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">float</span> overlap_x0 = <a class="code" href="cudaMath_8h.html#a2e3ea020fe010be1ba2da473f17223b7">fmaxf</a>(<a class="code" href="structdetectNet_1_1Detection.html#a42914a705a6cad72e56a9ad4fb68b0e6">Left</a>, x1);</div>
<div class="line"><a name="l00566"></a><span class="lineno">  566</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">float</span> overlap_y0 = <a class="code" href="cudaMath_8h.html#a2e3ea020fe010be1ba2da473f17223b7">fmaxf</a>(<a class="code" href="structdetectNet_1_1Detection.html#a2776e71cde1e6c41676bb5e6d12b1d0d">Top</a>, y1);</div>
<div class="line"><a name="l00567"></a><span class="lineno">  567</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">float</span> overlap_x1 = <a class="code" href="cudaMath_8h.html#a550f4f667b306665a335168336fc95b3">fminf</a>(<a class="code" href="structdetectNet_1_1Detection.html#aa008c7f9d614b314281366b7797cd00a">Right</a>, x2);</div>
<div class="line"><a name="l00568"></a><span class="lineno">  568</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">float</span> overlap_y1 = <a class="code" href="cudaMath_8h.html#a550f4f667b306665a335168336fc95b3">fminf</a>(<a class="code" href="structdetectNet_1_1Detection.html#a97869bd21815bfc1ca005fa057329ffe">Bottom</a>, y2);</div>
<div class="line"><a name="l00569"></a><span class="lineno">  569</span>&#160;        </div>
<div class="line"><a name="l00570"></a><span class="lineno">  570</span>&#160;        <span class="comment">// check if there is an overlap</span></div>
<div class="line"><a name="l00571"></a><span class="lineno">  571</span>&#160;        <span class="keywordflow">if</span>( (overlap_x1 - overlap_x0 &lt;= 0) || (overlap_y1 - overlap_y0 &lt;= 0) )</div>
<div class="line"><a name="l00572"></a><span class="lineno">  572</span>&#160;                <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00573"></a><span class="lineno">  573</span>&#160;        </div>
<div class="line"><a name="l00574"></a><span class="lineno">  574</span>&#160;        <span class="comment">// calculate the ratio of the overlap to each ROI size and the unified size</span></div>
<div class="line"><a name="l00575"></a><span class="lineno">  575</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">float</span> size_1 = Area();</div>
<div class="line"><a name="l00576"></a><span class="lineno">  576</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">float</span> size_2 = Area(x1, y1, x2, y2);</div>
<div class="line"><a name="l00577"></a><span class="lineno">  577</span>&#160;        </div>
<div class="line"><a name="l00578"></a><span class="lineno">  578</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">float</span> size_intersection = (overlap_x1 - overlap_x0) * (overlap_y1 - overlap_y0);</div>
<div class="line"><a name="l00579"></a><span class="lineno">  579</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">float</span> size_union = size_1 + size_2 - size_intersection;</div>
<div class="line"><a name="l00580"></a><span class="lineno">  580</span>&#160;        </div>
<div class="line"><a name="l00581"></a><span class="lineno">  581</span>&#160;        <span class="keywordflow">return</span> size_intersection / size_union;</div>
<div class="line"><a name="l00582"></a><span class="lineno">  582</span>&#160;}</div>
<div class="line"><a name="l00583"></a><span class="lineno">  583</span>&#160; </div>
<div class="line"><a name="l00584"></a><span class="lineno">  584</span>&#160; </div>
<div class="line"><a name="l00585"></a><span class="lineno">  585</span>&#160;<span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="agroup__detectNet_html_a8085235ab275b1bad3dcde14ec1223ed"><div class="ttname"><a href="group__detectNet.html#a8085235ab275b1bad3dcde14ec1223ed">detectNet::GetClassPath</a></div><div class="ttdeci">const char * GetClassPath() const</div><div class="ttdoc">Retrieve the path to the file containing the class descriptions.</div><div class="ttdef"><b>Definition:</b> detectNet.h:475</div></div>
<div class="ttc" id="astructdetectNet_1_1Detection_html_a04b420d87cc33bd1b3d3192509b4bfa5"><div class="ttname"><a href="structdetectNet_1_1Detection.html#a04b420d87cc33bd1b3d3192509b4bfa5">detectNet::Detection::Confidence</a></div><div class="ttdeci">float Confidence</div><div class="ttdoc">Confidence value of the detected object.</div><div class="ttdef"><b>Definition:</b> detectNet.h:126</div></div>
<div class="ttc" id="agroup__detectNet_html_a29e74cde23a8dd541dbd848e457663d6a966eaaaa69ed08d36dcb862e3fc644bf"><div class="ttname"><a href="group__detectNet.html#a29e74cde23a8dd541dbd848e457663d6a966eaaaa69ed08d36dcb862e3fc644bf">detectNet::OVERLAY_NONE</a></div><div class="ttdeci">@ OVERLAY_NONE</div><div class="ttdoc">No overlay.</div><div class="ttdef"><b>Definition:</b> detectNet.h:206</div></div>
<div class="ttc" id="astructdetectNet_1_1Detection_html_a42914a705a6cad72e56a9ad4fb68b0e6"><div class="ttname"><a href="structdetectNet_1_1Detection.html#a42914a705a6cad72e56a9ad4fb68b0e6">detectNet::Detection::Left</a></div><div class="ttdeci">float Left</div><div class="ttdoc">Left bounding box coordinate (in pixels)</div><div class="ttdef"><b>Definition:</b> detectNet.h:135</div></div>
<div class="ttc" id="agroup__detectNet_html_a7d9740240d5def31cdbb92c90fb3f26f"><div class="ttname"><a href="group__detectNet.html#a7d9740240d5def31cdbb92c90fb3f26f">detectNet::SetConfidenceThreshold</a></div><div class="ttdeci">void SetConfidenceThreshold(float threshold)</div><div class="ttdoc">Set the minimum threshold for detection.</div><div class="ttdef"><b>Definition:</b> detectNet.h:424</div></div>
<div class="ttc" id="agroup__detectNet_html_a29e74cde23a8dd541dbd848e457663d6ae65b9f9d5e1d39f02183f5f0f9816dfd"><div class="ttname"><a href="group__detectNet.html#a29e74cde23a8dd541dbd848e457663d6ae65b9f9d5e1d39f02183f5f0f9816dfd">detectNet::OVERLAY_DEFAULT</a></div><div class="ttdeci">@ OVERLAY_DEFAULT</div><div class="ttdoc">The default choice of overlay.</div><div class="ttdef"><b>Definition:</b> detectNet.h:212</div></div>
<div class="ttc" id="agroup__detectNet_html_ad3f419e16f510e8c3a21084b0f99719d"><div class="ttname"><a href="group__detectNet.html#ad3f419e16f510e8c3a21084b0f99719d">detectNet::postProcessDetectNet</a></div><div class="ttdeci">int postProcessDetectNet(Detection *detections, uint32_t width, uint32_t height)</div></div>
<div class="ttc" id="agroup__detectNet_html_aefb9214feb29121368dfaa5cf4082565"><div class="ttname"><a href="group__detectNet.html#aefb9214feb29121368dfaa5cf4082565">detectNet::GetOverlayAlpha</a></div><div class="ttdeci">float GetOverlayAlpha() const</div><div class="ttdoc">Retrieve the overlay alpha blending value for classes that don't have it explicitly set (between 0-25...</div><div class="ttdef"><b>Definition:</b> detectNet.h:505</div></div>
<div class="ttc" id="agroup__detectNet_html_ga1e79603783719e4a79f2c68f1ef47621"><div class="ttname"><a href="group__detectNet.html#ga1e79603783719e4a79f2c68f1ef47621">DETECTNET_DEFAULT_COVERAGE</a></div><div class="ttdeci">#define DETECTNET_DEFAULT_COVERAGE</div><div class="ttdoc">Name of default output blob of the coverage map for DetectNet caffe model.</div><div class="ttdef"><b>Definition:</b> detectNet.h:40</div></div>
<div class="ttc" id="astructdetectNet_1_1Detection_html_a4a4ab1c5c534c82ea14cdaed835f401d"><div class="ttname"><a href="structdetectNet_1_1Detection.html#a4a4ab1c5c534c82ea14cdaed835f401d">detectNet::Detection::TrackStatus</a></div><div class="ttdeci">int TrackStatus</div><div class="ttdoc">-1 for dropped, 0 for initializing, 1 for active/valid</div><div class="ttdef"><b>Definition:</b> detectNet.h:130</div></div>
<div class="ttc" id="astructdetectNet_1_1Detection_html_acf01a244de6de3f20e8e3930bae0f60e"><div class="ttname"><a href="structdetectNet_1_1Detection.html#acf01a244de6de3f20e8e3930bae0f60e">detectNet::Detection::IOU</a></div><div class="ttdeci">float IOU(float x1, float y1, float x2, float y2) const</div><div class="ttdoc">Return true if the bounding boxes overlap.</div><div class="ttdef"><b>Definition:</b> detectNet.h:563</div></div>
<div class="ttc" id="agroup__detectNet_html_ad50b3774ee7350d0c256d94a785ba9df"><div class="ttname"><a href="group__detectNet.html#ad50b3774ee7350d0c256d94a785ba9df">detectNet::GetThreshold</a></div><div class="ttdeci">float GetThreshold() const</div><div class="ttdoc">Retrieve the minimum threshold for detection.</div><div class="ttdef"><b>Definition:</b> detectNet.h:408</div></div>
<div class="ttc" id="agroup__detectNet_html_a9bb59636a3a0ba168752bb5e9f76421c"><div class="ttname"><a href="group__detectNet.html#a9bb59636a3a0ba168752bb5e9f76421c">detectNet::GetConfidenceThreshold</a></div><div class="ttdeci">float GetConfidenceThreshold() const</div><div class="ttdoc">Retrieve the minimum threshold for detection.</div><div class="ttdef"><b>Definition:</b> detectNet.h:419</div></div>
<div class="ttc" id="agroup__detectNet_html_a54aa7f77769d35fbd92d205904d364a2"><div class="ttname"><a href="group__detectNet.html#a54aa7f77769d35fbd92d205904d364a2">detectNet::preProcess</a></div><div class="ttdeci">bool preProcess(void *input, uint32_t width, uint32_t height, imageFormat format)</div></div>
<div class="ttc" id="acudaPointCloud_8h_html_a549d5369c70bd71a70798aa5b1ea4270"><div class="ttname"><a href="cudaPointCloud_8h.html#a549d5369c70bd71a70798aa5b1ea4270">color</a></div><div class="ttdeci">uchar3 color</div><div class="ttdoc">The RGB color of the point.</div><div class="ttdef"><b>Definition:</b> cudaPointCloud.h:11</div></div>
<div class="ttc" id="agroup__detectNet_html_a43266dab4ba9e3115c44df93ee2f34d8"><div class="ttname"><a href="group__detectNet.html#a43266dab4ba9e3115c44df93ee2f34d8">detectNet::SetClusteringThreshold</a></div><div class="ttdeci">void SetClusteringThreshold(float threshold)</div><div class="ttdoc">Set the overlapping area % threshold for clustering.</div><div class="ttdef"><b>Definition:</b> detectNet.h:434</div></div>
<div class="ttc" id="agroup__detectNet_html_a9e638cff75c285b31b5cb538ff279352"><div class="ttname"><a href="group__detectNet.html#a9e638cff75c285b31b5cb538ff279352">detectNet::mClassPath</a></div><div class="ttdeci">std::string mClassPath</div><div class="ttdef"><b>Definition:</b> detectNet.h:551</div></div>
<div class="ttc" id="astructdetectNet_1_1Detection_html_a985bb069089a55dc4a43d360486c1d1f"><div class="ttname"><a href="structdetectNet_1_1Detection.html#a985bb069089a55dc4a43d360486c1d1f">detectNet::Detection::Detection</a></div><div class="ttdeci">Detection()</div><div class="ttdef"><b>Definition:</b> detectNet.h:198</div></div>
<div class="ttc" id="agroup__detectNet_html_a07f8ddbe21585c837675e5e937b4dc1d"><div class="ttname"><a href="group__detectNet.html#a07f8ddbe21585c837675e5e937b4dc1d">detectNet::mClusteringThreshold</a></div><div class="ttdeci">float mClusteringThreshold</div><div class="ttdef"><b>Definition:</b> detectNet.h:540</div></div>
<div class="ttc" id="agroup__detectNet_html_a29e74cde23a8dd541dbd848e457663d6af7ce69cd21d84fb3b963713da66756eb"><div class="ttname"><a href="group__detectNet.html#a29e74cde23a8dd541dbd848e457663d6af7ce69cd21d84fb3b963713da66756eb">detectNet::OVERLAY_CONFIDENCE</a></div><div class="ttdeci">@ OVERLAY_CONFIDENCE</div><div class="ttdoc">Overlay the detection confidence values.</div><div class="ttdef"><b>Definition:</b> detectNet.h:209</div></div>
<div class="ttc" id="agroup__detectNet_html_a3cd0725bfab4ec8a54192eae4c7bac45"><div class="ttname"><a href="group__detectNet.html#a3cd0725bfab4ec8a54192eae4c7bac45">detectNet::Detect</a></div><div class="ttdeci">int Detect(T *image, uint32_t width, uint32_t height, Detection *detections, uint32_t overlay=OVERLAY_DEFAULT)</div><div class="ttdoc">Detect object locations in an image, into an array of the results allocated by the user.</div><div class="ttdef"><b>Definition:</b> detectNet.h:336</div></div>
<div class="ttc" id="agroup__detectNet_html_gac824e329015dc8aed6e1112bfe21cb97"><div class="ttname"><a href="group__detectNet.html#gac824e329015dc8aed6e1112bfe21cb97">DETECTNET_DEFAULT_INPUT</a></div><div class="ttdeci">#define DETECTNET_DEFAULT_INPUT</div><div class="ttdoc">Name of default input blob for DetectNet caffe model.</div><div class="ttdef"><b>Definition:</b> detectNet.h:34</div></div>
<div class="ttc" id="agroup__detectNet_html_classdetectNet"><div class="ttname"><a href="group__detectNet.html#classdetectNet">detectNet</a></div><div class="ttdoc">Object recognition and localization networks with TensorRT support.</div><div class="ttdef"><b>Definition:</b> detectNet.h:116</div></div>
<div class="ttc" id="agroup__detectNet_html_a70f7dc6392ad89b7f61339830d145577"><div class="ttname"><a href="group__detectNet.html#a70f7dc6392ad89b7f61339830d145577">detectNet::mTracker</a></div><div class="ttdeci">objectTracker * mTracker</div><div class="ttdef"><b>Definition:</b> detectNet.h:537</div></div>
<div class="ttc" id="agroup__detectNet_html_ae25ca7f51a3235011442ac1edeafe1d8"><div class="ttname"><a href="group__detectNet.html#ae25ca7f51a3235011442ac1edeafe1d8">detectNet::sortDetections</a></div><div class="ttdeci">void sortDetections(Detection *detections, int numDetections)</div></div>
<div class="ttc" id="astructdetectNet_1_1Detection_html"><div class="ttname"><a href="structdetectNet_1_1Detection.html">detectNet::Detection</a></div><div class="ttdoc">Object Detection result.</div><div class="ttdef"><b>Definition:</b> detectNet.h:122</div></div>
<div class="ttc" id="agroup__detectNet_html_ab8e3c3649acd8bb8d7cd45653dbbb7a0"><div class="ttname"><a href="group__detectNet.html#ab8e3c3649acd8bb8d7cd45653dbbb7a0">detectNet::mMeanPixel</a></div><div class="ttdeci">float mMeanPixel</div><div class="ttdef"><b>Definition:</b> detectNet.h:542</div></div>
<div class="ttc" id="agroup__tensorNet_html_ggaa5d3f9981cdbd91516c1474006a80fe4adc7f3f88455afa81458863e5b3092e4b"><div class="ttname"><a href="group__tensorNet.html#ggaa5d3f9981cdbd91516c1474006a80fe4adc7f3f88455afa81458863e5b3092e4b">DEVICE_GPU</a></div><div class="ttdeci">@ DEVICE_GPU</div><div class="ttdoc">GPU (if multiple GPUs are present, a specific GPU can be selected with cudaSetDevice()</div><div class="ttdef"><b>Definition:</b> tensorNet.h:131</div></div>
<div class="ttc" id="agroup__detectNet_html_acf351fe11541d733a37ba99c9b0c8aa3"><div class="ttname"><a href="group__detectNet.html#acf351fe11541d733a37ba99c9b0c8aa3">detectNet::mNumClasses</a></div><div class="ttdeci">uint32_t mNumClasses</div><div class="ttdef"><b>Definition:</b> detectNet.h:552</div></div>
<div class="ttc" id="agroup__detectNet_html_aa29864c6477dd396d5054a67d7406b9f"><div class="ttname"><a href="group__detectNet.html#aa29864c6477dd396d5054a67d7406b9f">detectNet::mClassColors</a></div><div class="ttdeci">float4 * mClassColors</div><div class="ttdef"><b>Definition:</b> detectNet.h:546</div></div>
<div class="ttc" id="agroup__detectNet_html_a80524a777ce4fc368922ac3cd8f97973"><div class="ttname"><a href="group__detectNet.html#a80524a777ce4fc368922ac3cd8f97973">detectNet::GetClassLabel</a></div><div class="ttdeci">const char * GetClassLabel(uint32_t index) const</div><div class="ttdoc">Retrieve the description of a particular class.</div><div class="ttdef"><b>Definition:</b> detectNet.h:460</div></div>
<div class="ttc" id="atensorNet_8h_html_a64c8f3dfeacfa962ff9e23c586aedd1b"><div class="ttname"><a href="tensorNet_8h.html#a64c8f3dfeacfa962ff9e23c586aedd1b">Dims3</a></div><div class="ttdeci">nvinfer1::Dims3 Dims3</div><div class="ttdef"><b>Definition:</b> tensorNet.h:58</div></div>
<div class="ttc" id="agroup__detectNet_html_a2bb2b446e26a466c9e355f1472f68e4c"><div class="ttname"><a href="group__detectNet.html#a2bb2b446e26a466c9e355f1472f68e4c">detectNet::OverlayFlagsFromStr</a></div><div class="ttdeci">static uint32_t OverlayFlagsFromStr(const char *flags)</div><div class="ttdoc">Parse a string sequence into OverlayFlags enum.</div></div>
<div class="ttc" id="agroup__detectNet_html_ab9ba7c63d2fc417d0908324fd0dc2223"><div class="ttname"><a href="group__detectNet.html#ab9ba7c63d2fc417d0908324fd0dc2223">detectNet::SetClassColor</a></div><div class="ttdeci">void SetClassColor(uint32_t classIndex, float r, float g, float b, float a=255.0f)</div><div class="ttdoc">Set the visualization color of a particular class of object.</div><div class="ttdef"><b>Definition:</b> detectNet.h:490</div></div>
<div class="ttc" id="agroup__tensorNet_html_gaa5d3f9981cdbd91516c1474006a80fe4"><div class="ttname"><a href="group__tensorNet.html#gaa5d3f9981cdbd91516c1474006a80fe4">deviceType</a></div><div class="ttdeci">deviceType</div><div class="ttdoc">Enumeration for indicating the desired device that the network should run on, if available in hardwar...</div><div class="ttdef"><b>Definition:</b> tensorNet.h:129</div></div>
<div class="ttc" id="astructdetectNet_1_1Detection_html_a0baef8e908f93105f2e6d1202ae2954e"><div class="ttname"><a href="structdetectNet_1_1Detection.html#a0baef8e908f93105f2e6d1202ae2954e">detectNet::Detection::ClassID</a></div><div class="ttdeci">uint32_t ClassID</div><div class="ttdoc">Class index of the detected object.</div><div class="ttdef"><b>Definition:</b> detectNet.h:125</div></div>
<div class="ttc" id="agroup__detectNet_html_a0e8b7f336a5531ce9446b4c63e7143e4"><div class="ttname"><a href="group__detectNet.html#a0e8b7f336a5531ce9446b4c63e7143e4">detectNet::SetLineWidth</a></div><div class="ttdeci">void SetLineWidth(float width)</div><div class="ttdoc">Set the line width used during overlay when OVERLAY_LINES is used.</div><div class="ttdef"><b>Definition:</b> detectNet.h:500</div></div>
<div class="ttc" id="atensorNet_8h_html"><div class="ttname"><a href="tensorNet_8h.html">tensorNet.h</a></div></div>
<div class="ttc" id="agroup__tensorNet_html_ggaac6604fd52c6e5db82877390e0378623a1d325738f49e8e4c424ff671624e66f9"><div class="ttname"><a href="group__tensorNet.html#ggaac6604fd52c6e5db82877390e0378623a1d325738f49e8e4c424ff671624e66f9">TYPE_FASTEST</a></div><div class="ttdeci">@ TYPE_FASTEST</div><div class="ttdoc">The fastest detected precision should be use (i.e.</div><div class="ttdef"><b>Definition:</b> tensorNet.h:105</div></div>
<div class="ttc" id="agroup__detectNet_html_afac4f7b876a6ee391599bbce3f2982b1"><div class="ttname"><a href="group__detectNet.html#afac4f7b876a6ee391599bbce3f2982b1">detectNet::SetClassColor</a></div><div class="ttdeci">void SetClassColor(uint32_t classIndex, const float4 &amp;color)</div><div class="ttdoc">Set the visualization color of a particular class of object.</div><div class="ttdef"><b>Definition:</b> detectNet.h:485</div></div>
<div class="ttc" id="agroup__detectNet_html_a283969d1290eb6675356b7a96ecb89e6"><div class="ttname"><a href="group__detectNet.html#a283969d1290eb6675356b7a96ecb89e6">detectNet::postProcess</a></div><div class="ttdeci">int postProcess(void *input, uint32_t width, uint32_t height, imageFormat format, Detection *detections)</div></div>
<div class="ttc" id="agroup__detectNet_html_ad72b6e8d9c429fd2d4a9a58b829cae90"><div class="ttname"><a href="group__detectNet.html#ad72b6e8d9c429fd2d4a9a58b829cae90">detectNet::clusterDetections</a></div><div class="ttdeci">int clusterDetections(Detection *detections, int n)</div></div>
<div class="ttc" id="agroup__detectNet_html_a29e74cde23a8dd541dbd848e457663d6"><div class="ttname"><a href="group__detectNet.html#a29e74cde23a8dd541dbd848e457663d6">detectNet::OverlayFlags</a></div><div class="ttdeci">OverlayFlags</div><div class="ttdoc">Overlay flags (can be OR'd together).</div><div class="ttdef"><b>Definition:</b> detectNet.h:204</div></div>
<div class="ttc" id="acudaMath_8h_html_a550f4f667b306665a335168336fc95b3"><div class="ttname"><a href="cudaMath_8h.html#a550f4f667b306665a335168336fc95b3">fminf</a></div><div class="ttdeci">float fminf(float a, float b)</div><div class="ttdef"><b>Definition:</b> cudaMath.h:51</div></div>
<div class="ttc" id="agroup__detectNet_html_a2c649836482b3bfe12f4ab671387aa77"><div class="ttname"><a href="group__detectNet.html#a2c649836482b3bfe12f4ab671387aa77">detectNet::loadClassColors</a></div><div class="ttdeci">bool loadClassColors(const char *filename)</div></div>
<div class="ttc" id="agroup__detectNet_html_ac2ffd50b5fb52d6ceea09af29b144afc"><div class="ttname"><a href="group__detectNet.html#ac2ffd50b5fb52d6ceea09af29b144afc">detectNet::SetOverlayAlpha</a></div><div class="ttdeci">void SetOverlayAlpha(float alpha)</div><div class="ttdoc">Set overlay alpha blending value for all classes (between 0-255).</div></div>
<div class="ttc" id="agroup__tensorNet_html_gaac6604fd52c6e5db82877390e0378623"><div class="ttname"><a href="group__tensorNet.html#gaac6604fd52c6e5db82877390e0378623">precisionType</a></div><div class="ttdeci">precisionType</div><div class="ttdoc">Enumeration for indicating the desired precision that the network should run in, if available in hard...</div><div class="ttdef"><b>Definition:</b> tensorNet.h:102</div></div>
<div class="ttc" id="agroup__detectNet_html_a1c85b56e7b1e4b3e474f47c7f18a157d"><div class="ttname"><a href="group__detectNet.html#a1c85b56e7b1e4b3e474f47c7f18a157d">detectNet::mClassSynset</a></div><div class="ttdeci">std::vector&lt; std::string &gt; mClassSynset</div><div class="ttdef"><b>Definition:</b> detectNet.h:549</div></div>
<div class="ttc" id="agroup__detectNet_html_a3a39ab13d93571f33743756c6436c9e1"><div class="ttname"><a href="group__detectNet.html#a3a39ab13d93571f33743756c6436c9e1">detectNet::mOverlayAlpha</a></div><div class="ttdeci">float mOverlayAlpha</div><div class="ttdef"><b>Definition:</b> detectNet.h:544</div></div>
<div class="ttc" id="agroup__detectNet_html_a82c0e177e0da142fa22aa7580077307d"><div class="ttname"><a href="group__detectNet.html#a82c0e177e0da142fa22aa7580077307d">detectNet::~detectNet</a></div><div class="ttdeci">virtual ~detectNet()</div><div class="ttdoc">Destory.</div></div>
<div class="ttc" id="agroup__detectNet_html_a9696a2f1ec59adfadc070e408c3d2abd"><div class="ttname"><a href="group__detectNet.html#a9696a2f1ec59adfadc070e408c3d2abd">detectNet::mDetectionSet</a></div><div class="ttdeci">uint32_t mDetectionSet</div><div class="ttdef"><b>Definition:</b> detectNet.h:555</div></div>
<div class="ttc" id="agroup__objectTracker_html_classobjectTracker"><div class="ttname"><a href="group__objectTracker.html#classobjectTracker">objectTracker</a></div><div class="ttdoc">Object tracker interface.</div><div class="ttdef"><b>Definition:</b> objectTracker.h:52</div></div>
<div class="ttc" id="agroup__detectNet_html_a130307a2bac02b13834116eb72728530"><div class="ttname"><a href="group__detectNet.html#a130307a2bac02b13834116eb72728530">detectNet::GetTracker</a></div><div class="ttdeci">objectTracker * GetTracker() const</div><div class="ttdoc">Get the object tracker being used.</div><div class="ttdef"><b>Definition:</b> detectNet.h:439</div></div>
<div class="ttc" id="agroup__detectNet_html_a3692a43f224a5b9178203a3e6c6d7b51"><div class="ttname"><a href="group__detectNet.html#a3692a43f224a5b9178203a3e6c6d7b51">detectNet::postProcessSSD_UFF</a></div><div class="ttdeci">int postProcessSSD_UFF(Detection *detections, uint32_t width, uint32_t height)</div></div>
<div class="ttc" id="agroup__detectNet_html_a38689b7d4b83723038677d66c1961974"><div class="ttname"><a href="group__detectNet.html#a38689b7d4b83723038677d66c1961974">detectNet::GetMaxDetections</a></div><div class="ttdeci">uint32_t GetMaxDetections() const</div><div class="ttdoc">Retrieve the maximum number of simultaneous detections the network supports.</div><div class="ttdef"><b>Definition:</b> detectNet.h:450</div></div>
<div class="ttc" id="agroup__detectNet_html_a29e74cde23a8dd541dbd848e457663d6a7eb5454e7a6dd53d90c2ddd33b00d049"><div class="ttname"><a href="group__detectNet.html#a29e74cde23a8dd541dbd848e457663d6a7eb5454e7a6dd53d90c2ddd33b00d049">detectNet::OVERLAY_LABEL</a></div><div class="ttdeci">@ OVERLAY_LABEL</div><div class="ttdoc">Overlay the class description labels.</div><div class="ttdef"><b>Definition:</b> detectNet.h:208</div></div>
<div class="ttc" id="astructdetectNet_1_1Detection_html_ad07a85ac4ef3226fe860b6151b71d750"><div class="ttname"><a href="structdetectNet_1_1Detection.html#ad07a85ac4ef3226fe860b6151b71d750">detectNet::Detection::TrackLost</a></div><div class="ttdeci">int TrackLost</div><div class="ttdoc">The number of consecutive frames tracking has been lost for.</div><div class="ttdef"><b>Definition:</b> detectNet.h:132</div></div>
<div class="ttc" id="agroup__detectNet_html_a6aeee309257b1a42df275fdfe948a585"><div class="ttname"><a href="group__detectNet.html#a6aeee309257b1a42df275fdfe948a585">detectNet::GetClassDesc</a></div><div class="ttdeci">const char * GetClassDesc(uint32_t index) const</div><div class="ttdoc">Retrieve the description of a particular class.</div><div class="ttdef"><b>Definition:</b> detectNet.h:465</div></div>
<div class="ttc" id="agroup__detectNet_html_a468b5e636096159500f3db327c31e8dd"><div class="ttname"><a href="group__detectNet.html#a468b5e636096159500f3db327c31e8dd">detectNet::Create</a></div><div class="ttdeci">static detectNet * Create(const char *network=&quot;ssd-mobilenet-v2&quot;, float threshold=DETECTNET_DEFAULT_CONFIDENCE_THRESHOLD, uint32_t maxBatchSize=DEFAULT_MAX_BATCH_SIZE, precisionType precision=TYPE_FASTEST, deviceType device=DEVICE_GPU, bool allowGPUFallback=true)</div><div class="ttdoc">Load a pre-trained model.</div></div>
<div class="ttc" id="agroup__tensorNet_html_classtensorNet"><div class="ttname"><a href="group__tensorNet.html#classtensorNet">tensorNet</a></div><div class="ttdoc">Abstract class for loading a tensor network with TensorRT.</div><div class="ttdef"><b>Definition:</b> tensorNet.h:218</div></div>
<div class="ttc" id="agroup__detectNet_html_a77af699123da152d3e83ca355ed4de11"><div class="ttname"><a href="group__detectNet.html#a77af699123da152d3e83ca355ed4de11">detectNet::init</a></div><div class="ttdeci">bool init(const char *prototxt_path, const char *model_path, const char *class_labels, const char *class_colors, float threshold, const char *input, const char *coverage, const char *bboxes, uint32_t maxBatchSize, precisionType precision, deviceType device, bool allowGPUFallback)</div></div>
<div class="ttc" id="agroup__detectNet_html_a77b8f8059780ab552d97a046c32e1f8a"><div class="ttname"><a href="group__detectNet.html#a77b8f8059780ab552d97a046c32e1f8a">detectNet::mNumDetectionSets</a></div><div class="ttdeci">static const uint32_t mNumDetectionSets</div><div class="ttdef"><b>Definition:</b> detectNet.h:558</div></div>
<div class="ttc" id="agroup__detectNet_html_a29e74cde23a8dd541dbd848e457663d6aff23b9098d5bf0f91c31954001c2ff68"><div class="ttname"><a href="group__detectNet.html#a29e74cde23a8dd541dbd848e457663d6aff23b9098d5bf0f91c31954001c2ff68">detectNet::OVERLAY_BOX</a></div><div class="ttdeci">@ OVERLAY_BOX</div><div class="ttdoc">Overlay the object bounding boxes (filled)</div><div class="ttdef"><b>Definition:</b> detectNet.h:207</div></div>
<div class="ttc" id="agroup__detectNet_html_a1cb45695bf95d5fb5db48976d1de8ae2"><div class="ttname"><a href="group__detectNet.html#a1cb45695bf95d5fb5db48976d1de8ae2">detectNet::SetThreshold</a></div><div class="ttdeci">void SetThreshold(float threshold)</div><div class="ttdoc">Set the minimum threshold for detection.</div><div class="ttdef"><b>Definition:</b> detectNet.h:414</div></div>
<div class="ttc" id="agroup__detectNet_html_afcd4d30a1750b48924ec837c2ddb6cca"><div class="ttname"><a href="group__detectNet.html#afcd4d30a1750b48924ec837c2ddb6cca">detectNet::mConfidenceThreshold</a></div><div class="ttdeci">float mConfidenceThreshold</div><div class="ttdef"><b>Definition:</b> detectNet.h:539</div></div>
<div class="ttc" id="astructdetectNet_1_1Detection_html_ae3ef31867dad24441a3163c457a972ab"><div class="ttname"><a href="structdetectNet_1_1Detection.html#ae3ef31867dad24441a3163c457a972ab">detectNet::Detection::TrackID</a></div><div class="ttdeci">int TrackID</div><div class="ttdoc">Unique tracking ID (or -1 if untracked)</div><div class="ttdef"><b>Definition:</b> detectNet.h:129</div></div>
<div class="ttc" id="acudaMath_8h_html_a5ac86555d5a546106ec01ed56f8d48b4"><div class="ttname"><a href="cudaMath_8h.html#a5ac86555d5a546106ec01ed56f8d48b4">make_float4</a></div><div class="ttdeci">__host__ __device__ float4 make_float4(float s)</div><div class="ttdef"><b>Definition:</b> cudaMath.h:248</div></div>
<div class="ttc" id="astructdetectNet_1_1Detection_html_aa008c7f9d614b314281366b7797cd00a"><div class="ttname"><a href="structdetectNet_1_1Detection.html#aa008c7f9d614b314281366b7797cd00a">detectNet::Detection::Right</a></div><div class="ttdeci">float Right</div><div class="ttdoc">Right bounding box coordinate (in pixels)</div><div class="ttdef"><b>Definition:</b> detectNet.h:136</div></div>
<div class="ttc" id="agroup__detectNet_html_ab2da21dcd11e7e91054194b0c87332d9"><div class="ttname"><a href="group__detectNet.html#ab2da21dcd11e7e91054194b0c87332d9">detectNet::mDetectionSets</a></div><div class="ttdeci">Detection * mDetectionSets</div><div class="ttdef"><b>Definition:</b> detectNet.h:554</div></div>
<div class="ttc" id="agroup__detectNet_html_a94ff26d023e725a5c2da5be4f8d237d5"><div class="ttname"><a href="group__detectNet.html#a94ff26d023e725a5c2da5be4f8d237d5">detectNet::Overlay</a></div><div class="ttdeci">bool Overlay(T *input, T *output, uint32_t width, uint32_t height, Detection *detections, uint32_t numDetections, uint32_t flags=OVERLAY_DEFAULT)</div><div class="ttdoc">Draw the detected bounding boxes overlayed on an RGBA image.</div><div class="ttdef"><b>Definition:</b> detectNet.h:393</div></div>
<div class="ttc" id="agroup__detectNet_html_a5ab26d1cfb1710a826cae4473c7173f5"><div class="ttname"><a href="group__detectNet.html#a5ab26d1cfb1710a826cae4473c7173f5">detectNet::loadClassInfo</a></div><div class="ttdeci">bool loadClassInfo(const char *filename)</div></div>
<div class="ttc" id="agroup__detectNet_html_a38283495a61399d8347d67eb95dbe321"><div class="ttname"><a href="group__detectNet.html#a38283495a61399d8347d67eb95dbe321">detectNet::mMaxDetections</a></div><div class="ttdeci">uint32_t mMaxDetections</div><div class="ttdef"><b>Definition:</b> detectNet.h:556</div></div>
<div class="ttc" id="agroup__detectNet_html_acec72d01e020cf5bc50747abb0245f06"><div class="ttname"><a href="group__detectNet.html#acec72d01e020cf5bc50747abb0245f06">detectNet::GetNumClasses</a></div><div class="ttdeci">uint32_t GetNumClasses() const</div><div class="ttdoc">Retrieve the number of object classes supported in the detector.</div><div class="ttdef"><b>Definition:</b> detectNet.h:455</div></div>
<div class="ttc" id="astructdetectNet_1_1Detection_html_a97869bd21815bfc1ca005fa057329ffe"><div class="ttname"><a href="structdetectNet_1_1Detection.html#a97869bd21815bfc1ca005fa057329ffe">detectNet::Detection::Bottom</a></div><div class="ttdeci">float Bottom</div><div class="ttdoc">Bottom bounding box coordinate (in pixels)</div><div class="ttdef"><b>Definition:</b> detectNet.h:138</div></div>
<div class="ttc" id="agroup__detectNet_html_ga56785ae0440a9e281a6dc44dc01039a5"><div class="ttname"><a href="group__detectNet.html#ga56785ae0440a9e281a6dc44dc01039a5">DETECTNET_DEFAULT_CONFIDENCE_THRESHOLD</a></div><div class="ttdeci">#define DETECTNET_DEFAULT_CONFIDENCE_THRESHOLD</div><div class="ttdoc">Default value of the minimum detection threshold.</div><div class="ttdef"><b>Definition:</b> detectNet.h:52</div></div>
<div class="ttc" id="agroup__detectNet_html_ad099b492b82a1d7a55955ecf990fbea8"><div class="ttname"><a href="group__detectNet.html#ad099b492b82a1d7a55955ecf990fbea8">detectNet::GetClassColor</a></div><div class="ttdeci">float4 GetClassColor(uint32_t classIndex) const</div><div class="ttdoc">Retrieve the RGBA visualization color a particular class.</div><div class="ttdef"><b>Definition:</b> detectNet.h:480</div></div>
<div class="ttc" id="agroup__detectNet_html_a57cdfaea245446565f4e6f72edb0f857"><div class="ttname"><a href="group__detectNet.html#a57cdfaea245446565f4e6f72edb0f857">detectNet::mClassDesc</a></div><div class="ttdeci">std::vector&lt; std::string &gt; mClassDesc</div><div class="ttdef"><b>Definition:</b> detectNet.h:548</div></div>
<div class="ttc" id="agroup__detectNet_html_a29e74cde23a8dd541dbd848e457663d6a83823d45cf424993d605fd9705378ace"><div class="ttname"><a href="group__detectNet.html#a29e74cde23a8dd541dbd848e457663d6a83823d45cf424993d605fd9705378ace">detectNet::OVERLAY_TRACKING</a></div><div class="ttdeci">@ OVERLAY_TRACKING</div><div class="ttdoc">Overlay tracking information (like track ID)</div><div class="ttdef"><b>Definition:</b> detectNet.h:210</div></div>
<div class="ttc" id="agroup__detectNet_html_a6259a0c37ec3a3246bf23aad152c69e4"><div class="ttname"><a href="group__detectNet.html#a6259a0c37ec3a3246bf23aad152c69e4">detectNet::GetLineWidth</a></div><div class="ttdeci">float GetLineWidth() const</div><div class="ttdoc">Retrieve the line width used during overlay when OVERLAY_LINES is used.</div><div class="ttdef"><b>Definition:</b> detectNet.h:495</div></div>
<div class="ttc" id="agroup__tensorNet_html_ga5a46a965749d6118e01307fd4d4865c9"><div class="ttname"><a href="group__tensorNet.html#ga5a46a965749d6118e01307fd4d4865c9">DEFAULT_MAX_BATCH_SIZE</a></div><div class="ttdeci">#define DEFAULT_MAX_BATCH_SIZE</div><div class="ttdoc">Default maximum batch size.</div><div class="ttdef"><b>Definition:</b> tensorNet.h:88</div></div>
<div class="ttc" id="agroup__detectNet_html_acb367fb540a1dfb719c44ae0e4cdb045"><div class="ttname"><a href="group__detectNet.html#acb367fb540a1dfb719c44ae0e4cdb045">detectNet::allocDetections</a></div><div class="ttdeci">bool allocDetections()</div></div>
<div class="ttc" id="agroup__detectNet_html_a07a419d97f14aa0962b737e671ff438a"><div class="ttname"><a href="group__detectNet.html#a07a419d97f14aa0962b737e671ff438a">detectNet::detectNet</a></div><div class="ttdeci">detectNet(float meanPixel=0.0f)</div></div>
<div class="ttc" id="agroup__detectNet_html_a68322545826d7b866a70d5f9758f4d48"><div class="ttname"><a href="group__detectNet.html#a68322545826d7b866a70d5f9758f4d48">detectNet::GetClassSynset</a></div><div class="ttdeci">const char * GetClassSynset(uint32_t index) const</div><div class="ttdoc">Retrieve the class synset category of a particular class.</div><div class="ttdef"><b>Definition:</b> detectNet.h:470</div></div>
<div class="ttc" id="astructdetectNet_1_1Detection_html_a85fa073a482b8619e74868c53bd83fa5"><div class="ttname"><a href="structdetectNet_1_1Detection.html#a85fa073a482b8619e74868c53bd83fa5">detectNet::Detection::TrackFrames</a></div><div class="ttdeci">int TrackFrames</div><div class="ttdoc">The number of frames the object has been re-identified for.</div><div class="ttdef"><b>Definition:</b> detectNet.h:131</div></div>
<div class="ttc" id="agroup__detectNet_html_a158f5cf9d366668b8229375c1a342a04"><div class="ttname"><a href="group__detectNet.html#a158f5cf9d366668b8229375c1a342a04">detectNet::Detect</a></div><div class="ttdeci">int Detect(T *image, uint32_t width, uint32_t height, Detection **detections, uint32_t overlay=OVERLAY_DEFAULT)</div><div class="ttdoc">Detect object locations from an image, returning an array containing the detection results.</div><div class="ttdef"><b>Definition:</b> detectNet.h:324</div></div>
<div class="ttc" id="agroup__detectNet_html_a83cf2684627e8b6f3d14eee8f02def61"><div class="ttname"><a href="group__detectNet.html#a83cf2684627e8b6f3d14eee8f02def61">detectNet::SetTracker</a></div><div class="ttdeci">void SetTracker(objectTracker *tracker)</div><div class="ttdoc">Set the object tracker to be used.</div><div class="ttdef"><b>Definition:</b> detectNet.h:444</div></div>
<div class="ttc" id="astructdetectNet_1_1Detection_html_a2776e71cde1e6c41676bb5e6d12b1d0d"><div class="ttname"><a href="structdetectNet_1_1Detection.html#a2776e71cde1e6c41676bb5e6d12b1d0d">detectNet::Detection::Top</a></div><div class="ttdeci">float Top</div><div class="ttdoc">Top bounding box cooridnate (in pixels)</div><div class="ttdef"><b>Definition:</b> detectNet.h:137</div></div>
<div class="ttc" id="agroup__detectNet_html_a04233d3f697e8e21116a490b9d362a92"><div class="ttname"><a href="group__detectNet.html#a04233d3f697e8e21116a490b9d362a92">detectNet::mLineWidth</a></div><div class="ttdeci">float mLineWidth</div><div class="ttdef"><b>Definition:</b> detectNet.h:543</div></div>
<div class="ttc" id="acudaMath_8h_html_a2e3ea020fe010be1ba2da473f17223b7"><div class="ttname"><a href="cudaMath_8h.html#a2e3ea020fe010be1ba2da473f17223b7">fmaxf</a></div><div class="ttdeci">float fmaxf(float a, float b)</div><div class="ttdef"><b>Definition:</b> cudaMath.h:56</div></div>
<div class="ttc" id="agroup__commandLine_html_classcommandLine"><div class="ttname"><a href="group__commandLine.html#classcommandLine">commandLine</a></div><div class="ttdoc">Command line parser for extracting flags, values, and strings.</div><div class="ttdef"><b>Definition:</b> commandLine.h:35</div></div>
<div class="ttc" id="agroup__detectNet_html_a8c336e6b018a780e7ca74897d1bce628"><div class="ttname"><a href="group__detectNet.html#a8c336e6b018a780e7ca74897d1bce628">detectNet::Usage</a></div><div class="ttdeci">static const char * Usage()</div><div class="ttdoc">Usage string for command line arguments to Create()</div><div class="ttdef"><b>Definition:</b> detectNet.h:308</div></div>
<div class="ttc" id="agroup__detectNet_html_gac8c52a38ffa041865ed71fd2ea806620"><div class="ttname"><a href="group__detectNet.html#gac8c52a38ffa041865ed71fd2ea806620">DETECTNET_DEFAULT_BBOX</a></div><div class="ttdeci">#define DETECTNET_DEFAULT_BBOX</div><div class="ttdoc">Name of default output blob of the grid of bounding boxes for DetectNet caffe model.</div><div class="ttdef"><b>Definition:</b> detectNet.h:46</div></div>
<div class="ttc" id="agroup__detectNet_html_a29e74cde23a8dd541dbd848e457663d6af5f8642765b53b65fea273be879a5ab4"><div class="ttname"><a href="group__detectNet.html#a29e74cde23a8dd541dbd848e457663d6af5f8642765b53b65fea273be879a5ab4">detectNet::OVERLAY_LINES</a></div><div class="ttdeci">@ OVERLAY_LINES</div><div class="ttdoc">Overlay the bounding box lines (unfilled)</div><div class="ttdef"><b>Definition:</b> detectNet.h:211</div></div>
<div class="ttc" id="agroup__detectNet_html_a7eacf562b466e13af2303f0360543a77"><div class="ttname"><a href="group__detectNet.html#a7eacf562b466e13af2303f0360543a77">detectNet::postProcessDetectNet_v2</a></div><div class="ttdeci">int postProcessDetectNet_v2(Detection *detections, uint32_t width, uint32_t height)</div></div>
<div class="ttc" id="agroup__detectNet_html_gad5f43885a04689f10c6f9d297ab88a8d"><div class="ttname"><a href="group__detectNet.html#gad5f43885a04689f10c6f9d297ab88a8d">DETECTNET_USAGE_STRING</a></div><div class="ttdeci">#define DETECTNET_USAGE_STRING</div><div class="ttdoc">Standard command-line options able to be passed to detectNet::Create()</div><div class="ttdef"><b>Definition:</b> detectNet.h:83</div></div>
<div class="ttc" id="agroup__imageFormat_html_ga931c48e08f361637d093355d64583406"><div class="ttname"><a href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a></div><div class="ttdeci">imageFormat</div><div class="ttdoc">The imageFormat enum is used to identify the pixel format and colorspace of an image.</div><div class="ttdef"><b>Definition:</b> imageFormat.h:49</div></div>
<div class="ttc" id="agroup__detectNet_html_ae63aba1ee4e12f8afab35f0c928f4ef6"><div class="ttname"><a href="group__detectNet.html#ae63aba1ee4e12f8afab35f0c928f4ef6">detectNet::GetClusteringThreshold</a></div><div class="ttdeci">float GetClusteringThreshold() const</div><div class="ttdoc">Retrieve the overlapping area % threshold for clustering.</div><div class="ttdef"><b>Definition:</b> detectNet.h:429</div></div>
<div class="ttc" id="acudaVector_8h_html_aa94774faf063d34dab6f3f374d73ea7a"><div class="ttname"><a href="cudaVector_8h.html#aa94774faf063d34dab6f3f374d73ea7a">alpha</a></div><div class="ttdeci">__device__ cudaVectorTypeInfo&lt; T &gt;::Base alpha(T vec, typename cudaVectorTypeInfo&lt; T &gt;::Base default_alpha=255)</div><div class="ttdef"><b>Definition:</b> cudaVector.h:98</div></div>
<div class="ttc" id="agroup__detectNet_html_a41a6499dc49c6598b2ed4bbfb7053898"><div class="ttname"><a href="group__detectNet.html#a41a6499dc49c6598b2ed4bbfb7053898">detectNet::postProcessSSD_ONNX</a></div><div class="ttdeci">int postProcessSSD_ONNX(Detection *detections, uint32_t width, uint32_t height)</div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_2e4d84877693cd000e5cb535f4b23486.html">jetson-inference</a></li><li class="navelem"><a class="el" href="detectNet_8h.html">detectNet.h</a></li>
    <li class="footer">Generated on Tue Mar 28 2023 14:27:58 for Jetson Inference by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>
